Thread (1 message) 1 message, 1 author, 2023-09-08

Re: [PATCH] completion(switch/checkout): treat --track and -t the same

From: Junio C Hamano <hidden>
Date: 2023-09-08 16:26:12

Todd Zullinger [off-list ref] writes:
Junio C Hamano wrote:
quoted
"Johannes Schindelin via GitGitGadget" [off-list ref]
writes:
quoted
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh
index 8835e16e811..df8bc44c285 100755
--- a/t/t9902-completion.sh
+++ b/t/t9902-completion.sh
@@ -1622,14 +1622,22 @@ test_expect_success 'git checkout - with -d, complete only references' '
 '
 
 test_expect_success 'git switch - with --track, complete only remote branches' '
-	test_completion "git switch --track " <<-\EOF
+:	test_completion "git switch --track " <<-\EOF &&
Is this new leading ":" intended?  It looks out of place
(though perhaps I just don't unerstand the context well
enough).
Good eyes.  It makes it an expensive no-op ;-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help