From: Junio C Hamano Date: Tue, 18 Oct 2011 04:37:14 +0000 (-0700) Subject: Merge branch 'jk/pull-rebase-with-work-tree' X-Git-Tag: v1.7.8-rc0~52 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f2b516352527c6ddf338143e4ade0ef4713f85eb;p=git.git Merge branch 'jk/pull-rebase-with-work-tree' * jk/pull-rebase-with-work-tree: pull,rebase: handle GIT_WORK_TREE better Conflicts: git-pull.sh --- f2b516352527c6ddf338143e4ade0ef4713f85eb diff --cc git-pull.sh index 8c1370f81,7500b58ff..9868a0bfb --- a/git-pull.sh +++ b/git-pull.sh @@@ -9,9 -9,8 +9,9 @@@ LONG_USAGE='Fetch one or more remote re SUBDIRECTORY_OK=Yes OPTIONS_SPEC= . git-sh-setup -set_reflog_action "pull $*" +. git-sh-i18n +set_reflog_action "pull${1+ $*}" - require_work_tree + require_work_tree_exists cd_to_toplevel diff --cc git-rebase.sh index 6759702c5,60a405d1f..00ca7b99f --- a/git-rebase.sh +++ b/git-rebase.sh @@@ -28,42 -28,10 +28,42 @@@ Example: git-rebase master~1 topi ' SUBDIRECTORY_OK=Yes -OPTIONS_SPEC= +OPTIONS_KEEPDASHDASH= +OPTIONS_SPEC="\ +git rebase [-i] [options] [--onto ] [] [] +git rebase [-i] [options] --onto --root [] +git-rebase [-i] --continue | --abort | --skip +-- + Available options are +v,verbose! display a diffstat of what changed upstream +q,quiet! be quiet. implies --no-stat +onto=! rebase onto given branch instead of upstream +p,preserve-merges! try to recreate merges instead of ignoring them +s,strategy=! use the given merge strategy +no-ff! cherry-pick all commits, even if unchanged +m,merge! use merging strategies to rebase +i,interactive! let the user edit the list of commits to rebase +f,force-rebase! force rebase even if branch is up to date +X,strategy-option=! pass the argument through to the merge strategy +stat! display a diffstat of what changed upstream +n,no-stat! do not show diffstat of what changed upstream +verify allow pre-rebase hook to run +rerere-autoupdate allow rerere to update index with resolved conflicts +root! rebase all reachable commits up to the root(s) +autosquash move commits that begin with squash!/fixup! under -i +committer-date-is-author-date! passed to 'git am' +ignore-date! passed to 'git am' +whitespace=! passed to 'git apply' +ignore-whitespace! passed to 'git apply' +C=! passed to 'git apply' + Actions: +continue! continue +abort! abort and check out the original branch +skip! skip current patch and continue +" . git-sh-setup set_reflog_action rebase - require_work_tree + require_work_tree_exists cd_to_toplevel LF='