author | Junio C Hamano <gitster@pobox.com> | |
Tue, 1 Nov 2011 23:11:00 +0000 (16:11 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 1 Nov 2011 23:11:00 +0000 (16:11 -0700) |
* jk/pull-rebase-with-work-tree:
pull,rebase: handle GIT_WORK_TREE better
Conflicts:
git-pull.sh
pull,rebase: handle GIT_WORK_TREE better
Conflicts:
git-pull.sh
1 | 2 | |||
---|---|---|---|---|
git-pull.sh | patch | | diff1 | | diff2 | | blob | history |
git-rebase.sh | patch | | diff1 | | diff2 | | blob | history |
diff --cc git-pull.sh
index 63da37bcc2730358140ae4b862040ed8fb0ed77e,7500b58ff9a9d7f4bec58c4bd27345dff7b57d29..902fc4adb4b95d27c6ba6c63f40108702dd93f11
--- 1/git-pull.sh
--- 2/git-pull.sh
+++ b/git-pull.sh
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 6759702c573f51ac00bf1b5c8abccf252cb4ff1d,60a405d1fb70b4c8af3ee771a48ea006bd268e4d..00ca7b99fef35e21d24af844e6dbaa92cab5834f
--- 1/git-rebase.sh
--- 2/git-rebase.sh
+++ b/git-rebase.sh
'
SUBDIRECTORY_OK=Yes
-OPTIONS_SPEC=
+OPTIONS_KEEPDASHDASH=
+OPTIONS_SPEC="\
+git rebase [-i] [options] [--onto <newbase>] [<upstream>] [<branch>]
+git rebase [-i] [options] --onto <newbase> --root [<branch>]
+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='