aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-03-14 14:05:24 -0700
committerJunio C Hamano <gitster@pobox.com>2024-03-14 14:05:24 -0700
commit43100746e69aacb3f8110a9855aacd66483f7e24 (patch)
tree8a1d9ac3aae7dbad3a52a4c8c302c1dbf192bee7 /t
parentedae49e3c0dc66f8918bcc0b4f3317c640ebd98a (diff)
parent1284f9cc11be4b656492938f68befbe4c87d915f (diff)
downloadgit-43100746e69aacb3f8110a9855aacd66483f7e24.tar.gz
Merge branch 'rj/complete-reflog'
The command line completion script (in contrib/) learned to complete "git reflog" better. * rj/complete-reflog: completion: reflog subcommands and options completion: factor out __git_resolve_builtins completion: introduce __git_find_subcommand completion: reflog show <log-options> completion: reflog with implicit "show"
Diffstat (limited to 't')
-rwxr-xr-xt/t9902-completion.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh
index b16c284181..867b5e61da 100755
--- a/t/t9902-completion.sh
+++ b/t/t9902-completion.sh
@@ -2804,6 +2804,20 @@ test_expect_success 'git clone --config= - value' '
EOF
'
+test_expect_success 'git reflog show' '
+ test_when_finished "git checkout - && git branch -d shown" &&
+ git checkout -b shown &&
+ test_completion "git reflog sho" <<-\EOF &&
+ show Z
+ shown Z
+ EOF
+ test_completion "git reflog show sho" "shown " &&
+ test_completion "git reflog shown sho" "shown " &&
+ test_completion "git reflog --unt" "--until=" &&
+ test_completion "git reflog show --unt" "--until=" &&
+ test_completion "git reflog shown --unt" "--until="
+'
+
test_expect_success 'options with value' '
test_completion "git merge -X diff-algorithm=" <<-\EOF