Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
rebase -i: support --stat
author
Martin von Zweigbergk
<martin.von.zweigbergk@gmail.com>
Sun, 6 Feb 2011 18:43:45 +0000
(13:43 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 10 Feb 2011 22:08:08 +0000
(14:08 -0800)
Move up the code that displays the diffstat if '--stat' is passed, so
that it will be executed before calling git-rebase--interactive.sh.
A side effect is that the diffstat is now displayed before "First,
rewinding head to replay your work on top of it...".
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
cc1453e
)
diff --git
a/git-rebase.sh
b/git-rebase.sh
index 87d7fde95c1ab7745bc91ac72532e79a31301c00..c8a7e4ea56b513f9b4754009a8d93af7b8022958 100755
(executable)
--- a/
git-rebase.sh
+++ b/
git-rebase.sh
@@
-539,13
+539,6
@@
fi
# If a hook exists, give it a chance to interrupt
run_pre_rebase_hook "$upstream_arg" "$@"
# If a hook exists, give it a chance to interrupt
run_pre_rebase_hook "$upstream_arg" "$@"
-test "$type" = interactive && run_interactive_rebase
-
-# Detach HEAD and reset the tree
-say "First, rewinding head to replay your work on top of it..."
-git checkout -q "$onto^0" || die "could not detach HEAD"
-git update-ref ORIG_HEAD $branch
-
if test -n "$diffstat"
then
if test -n "$verbose"
if test -n "$diffstat"
then
if test -n "$verbose"
@@
-556,6
+549,13
@@
then
GIT_PAGER='' git diff --stat --summary "$mb" "$onto"
fi
GIT_PAGER='' git diff --stat --summary "$mb" "$onto"
fi
+test "$type" = interactive && run_interactive_rebase
+
+# Detach HEAD and reset the tree
+say "First, rewinding head to replay your work on top of it..."
+git checkout -q "$onto^0" || die "could not detach HEAD"
+git update-ref ORIG_HEAD $branch
+
# If the $onto is a proper descendant of the tip of the branch, then
# we just fast-forwarded.
if test "$mb" = "$branch"
# If the $onto is a proper descendant of the tip of the branch, then
# we just fast-forwarded.
if test "$mb" = "$branch"