diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-02-28 16:38:47 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-02-28 16:38:47 -0800 |
| commit | a2d2b5229e55742f56fbbde4f7bb013171f7a6ca (patch) | |
| tree | 579eec5b1c2d5a4a3472650371efe82c91a1ec13 /t/test-lib-functions.sh | |
| parent | Merge branch 'jk/http-test-fixes' (diff) | |
| parent | rebase -i: fix parsing of "fixup -C<commit>" (diff) | |
| download | git-a2d2b5229e55742f56fbbde4f7bb013171f7a6ca.tar.gz git-a2d2b5229e55742f56fbbde4f7bb013171f7a6ca.zip | |
Merge branch 'pw/rebase-i-parse-fix'
Fixes to code that parses the todo file used in "rebase -i".
* pw/rebase-i-parse-fix:
rebase -i: fix parsing of "fixup -C<commit>"
rebase -i: match whole word in is_command()
Diffstat (limited to 't/test-lib-functions.sh')
| -rw-r--r-- | t/test-lib-functions.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index 58cfd2f1fd..999d46fafe 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -32,6 +32,14 @@ test_set_editor () { export EDITOR } +# Like test_set_editor but sets GIT_SEQUENCE_EDITOR instead of EDITOR +test_set_sequence_editor () { + FAKE_SEQUENCE_EDITOR="$1" + export FAKE_SEQUENCE_EDITOR + GIT_SEQUENCE_EDITOR='"$FAKE_SEQUENCE_EDITOR"' + export GIT_SEQUENCE_EDITOR +} + test_decode_color () { awk ' function name(n) { |
