{"thread":{"id":"32417","subject":"[PATCH] t9902: Be more specific when completing git-checkout","startedAt":"2012-12-20T17:31:03Z","lastAt":"2012-12-20T17:31:03Z","messageCount":1,"participants":["Torsten Bögershausen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"205272","messageId":"201212201831.03590.tboegi@web.de","threadId":"32417","inReplyTo":null,"subject":"[PATCH] t9902: Be more specific when completing git-checkout","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2012-12-20T17:31:03Z","receivedAt":"2012-12-20T17:31:03Z","isPatch":true,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"t9902 is trying to complete e.g.\n\"git --version check\" into \"git --version checkout\"\n\nIf there are other binaries like\n\"git-check-email\" or \"git-check-ignore\" in the PATH\none test case failes\n\nBy using \"checkou\" instead of \"check\" the test becomes\nmore future proof.\n\nSigned-off-by: Torsten Bögershausen <tboegi@web.de>\n---\n t/t9902-completion.sh | 24 ++++++++++++------------\n 1 file changed, 12 insertions(+), 12 deletions(-)\n\ndiff --git a/t/t9902-completion.sh b/t/t9902-completion.sh\nindex 3cd53f8..0e0e2d1 100755\n--- a/t/t9902-completion.sh\n+++ b/t/t9902-completion.sh\n@@ -192,19 +192,19 @@ test_expect_success 'general options' '\n '\n \n test_expect_success 'general options plus command' '\n-\ttest_completion \"git --version check\" \"checkout \" &&\n-\ttest_completion \"git --paginate check\" \"checkout \" &&\n-\ttest_completion \"git --git-dir=foo check\" \"checkout \" &&\n-\ttest_completion \"git --bare check\" \"checkout \" &&\n+\ttest_completion \"git --version checkou\" \"checkout \" &&\n+\ttest_completion \"git --paginate checkou\" \"checkout \" &&\n+\ttest_completion \"git --git-dir=foo checkou\" \"checkout \" &&\n+\ttest_completion \"git --bare checkou\" \"checkout \" &&\n \ttest_completion \"git --help des\" \"describe \" &&\n-\ttest_completion \"git --exec-path=foo check\" \"checkout \" &&\n-\ttest_completion \"git --html-path check\" \"checkout \" &&\n-\ttest_completion \"git --no-pager check\" \"checkout \" &&\n-\ttest_completion \"git --work-tree=foo check\" \"checkout \" &&\n-\ttest_completion \"git --namespace=foo check\" \"checkout \" &&\n-\ttest_completion \"git --paginate check\" \"checkout \" &&\n-\ttest_completion \"git --info-path check\" \"checkout \" &&\n-\ttest_completion \"git --no-replace-objects check\" \"checkout \"\n+\ttest_completion \"git --exec-path=foo checkou\" \"checkout \" &&\n+\ttest_completion \"git --html-path checkou\" \"checkout \" &&\n+\ttest_completion \"git --no-pager checkou\" \"checkout \" &&\n+\ttest_completion \"git --work-tree=foo checkou\" \"checkout \" &&\n+\ttest_completion \"git --namespace=foo checkou\" \"checkout \" &&\n+\ttest_completion \"git --paginate checkou\" \"checkout \" &&\n+\ttest_completion \"git --info-path checkou\" \"checkout \" &&\n+\ttest_completion \"git --no-replace-objects checkou\" \"checkout \"\n '\n \n test_expect_success 'setup for ref completion' '\n-- \n1.8.0\n"}]}