summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 29a0334)
raw | patch | inline | side by side (parent: 29a0334)
author | Johannes Schindelin <johannes.schindelin@gmx.de> | |
Tue, 27 Jan 2009 22:34:35 +0000 (23:34 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 29 Jan 2009 04:15:36 +0000 (20:15 -0800) |
Make it easy for other authors to use rebase tests' fake-editor.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-rebase.sh | patch | blob | history |
diff --git a/t/lib-rebase.sh b/t/lib-rebase.sh
index 762ffcfa0f0f25d64821ca0ffc08fe92b1a3c572..260a231933a3cc9ce1f96eeb5952f34d7dc18d72 100644 (file)
--- a/t/lib-rebase.sh
+++ b/t/lib-rebase.sh
#!/bin/sh
+# After setting the fake editor with this function, you can
+#
+# - override the commit message with $FAKE_COMMIT_MESSAGE,
+# - amend the commit message with $FAKE_COMMIT_AMEND
+# - check that non-commit messages have a certain line count with $EXPECT_COUNT
+# - rewrite a rebase -i script with $FAKE_LINES in the form
+#
+# "[<lineno1>] [<lineno2>]..."
+#
+# If a line number is prefixed with "squash" or "edit", the respective line's
+# command will be replaced with the specified one.
+
set_fake_editor () {
echo "#!$SHELL_PATH" >fake-editor.sh
cat >> fake-editor.sh <<\EOF