Merge branch 'maint-1.6.0' into maint
authorJunio C Hamano <gitster@pobox.com>
Tue, 13 Jan 2009 08:40:19 +0000 (00:40 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Jan 2009 08:40:19 +0000 (00:40 -0800)
* maint-1.6.0:
Avoid spurious error messages on error mistakes.
contrib/examples/README: give an explanation of the status of these files

contrib/examples/README [new file with mode: 0644]
git-rebase--interactive.sh
diff --git a/contrib/examples/README b/contrib/examples/README
new file mode 100644 (file)
index 0000000..6946f3d
--- /dev/null
@@ -0,0 +1,3 @@
+These are original scripted implementations, kept primarily for their
+reference value to any aspiring plumbing users who want to learn how
+pieces can be fit together.
index c8b0861c085035c85002f6e2fe969369ea32016f..8ed2244819d0950ddf1ffaa151b4d46bdc8b6db4 100755 (executable)
@@ -349,7 +349,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