Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Also make git-rebase-script stricter about dirty working tree.
author
Junio C Hamano
<junkio@cox.net>
Thu, 18 Aug 2005 23:30:36 +0000
(16:30 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Thu, 18 Aug 2005 23:30:36 +0000
(16:30 -0700)
Otherwise the first commit rebase makes could include whatever
dirty state the original working tree had.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-rebase-script
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
d571c2b
)
diff --git
a/git-rebase-script
b/git-rebase-script
index 5bb3bd97af8019ad31d9278fcfd27e08ca3ce1da..a335b991782e56b9ce33520a4671539791ff4fb8 100755
(executable)
--- a/
git-rebase-script
+++ b/
git-rebase-script
@@
-27,7
+27,9
@@
esac
upstream=`git-rev-parse --verify "$1"` &&
ours=`git-rev-parse --verify "$ours_symbolic"` || exit
-test "$(git-diff-cache --cached "$ours")" = "" ||
+different1=$(git-diff-cache --name-only --cached "$ours") &&
+different2=$(git-diff-cache --name-only "$ours") &&
+test "$different1$different2" = "" ||
die "Your working tree does not match $ours_symbolic."
git-read-tree -m -u $ours $upstream &&