lib-rebase.sh: Document what set_fake_editor() does
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>
This commit is contained in:
parent
29a03348a3
commit
03af0870a0
@ -1,5 +1,17 @@
|
|||||||
#!/bin/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 () {
|
set_fake_editor () {
|
||||||
echo "#!$SHELL_PATH" >fake-editor.sh
|
echo "#!$SHELL_PATH" >fake-editor.sh
|
||||||
cat >> fake-editor.sh <<\EOF
|
cat >> fake-editor.sh <<\EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user