Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Avoid spurious error messages on error mistakes.
author
Pierre Habouzit
<madcoder@debian.org>
Mon, 12 Jan 2009 23:09:36 +0000
(
00:09
+0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 13 Jan 2009 08:21:31 +0000
(
00:21
-0800)
Prior to that, if the user chose "squash" as a first action, the stderr
looked like:
grep: /home/madcoder/dev/scm/git/.git/rebase-merge/done: No such file or directory
Cannot 'squash' without a previous commit
Now the first line is gone.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--interactive.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
47a845b
)
diff --git
a/git-rebase--interactive.sh
b/git-rebase--interactive.sh
index 124cb5846b07ee9aa72fac4cbb88098c94f5741a..59c148ff6d477c5c40258d3adc5c95f5c775ccc6 100755
(executable)
--- a/
git-rebase--interactive.sh
+++ b/
git-rebase--interactive.sh
@@
-309,7
+309,7
@@
do_next () {
squash|s)
comment_for_reflog squash
- has_action "$DONE" ||
+
test -f "$DONE" &&
has_action "$DONE" ||
die "Cannot 'squash' without a previous commit"
mark_action_done