From: Junio C Hamano Date: Tue, 1 Nov 2011 23:11:00 +0000 (-0700) Subject: Merge branch 'jk/pull-rebase-with-work-tree' into maint X-Git-Tag: v1.7.7.2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0814d6e554c45636f41856cc2204abe2f661560c;p=git.git Merge branch 'jk/pull-rebase-with-work-tree' into maint * jk/pull-rebase-with-work-tree: pull,rebase: handle GIT_WORK_TREE better Conflicts: git-pull.sh --- 0814d6e554c45636f41856cc2204abe2f661560c diff --cc git-pull.sh index 63da37bcc,7500b58ff..902fc4adb --- 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='