summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-03-01 00:38:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-03-01 00:38:47 (GMT)
commita2d2b5229e55742f56fbbde4f7bb013171f7a6ca (patch)
tree579eec5b1c2d5a4a3472650371efe82c91a1ec13 /t/test-lib-functions.sh
parentb2893ea403562f94a11edf5c3cc6beb44685d991 (diff)
parent666b6e1135c12925efe608c4d5f03234c54e2d0c (diff)
downloadgit-a2d2b5229e55742f56fbbde4f7bb013171f7a6ca.zip
git-a2d2b5229e55742f56fbbde4f7bb013171f7a6ca.tar.gz
git-a2d2b5229e55742f56fbbde4f7bb013171f7a6ca.tar.bz2
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.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 58cfd2f..999d46f 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) {