summaryrefslogtreecommitdiff
path: root/t/t9902-completion.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-01-18 21:49:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-18 21:49:54 (GMT)
commitb84e2977534b677ae1ac8670489002637fab6438 (patch)
tree0f4ebde24c47a68cc899d3f16bd980ecb1ff7fd2 /t/t9902-completion.sh
parentc4338578943129cc7e76657453d879e38f70ce63 (diff)
parent6d54f528c74604b289ce7237cd30a1cfc5511f18 (diff)
downloadgit-b84e2977534b677ae1ac8670489002637fab6438.zip
git-b84e2977534b677ae1ac8670489002637fab6438.tar.gz
git-b84e2977534b677ae1ac8670489002637fab6438.tar.bz2
Merge branch 'cy/zsh-completion-SP-in-path'
With zsh, "git cmd path<TAB>" was completed to "git cmd path name" when the completed path has a special character like SP in it, without any attempt to keep "path name" a single filename. This has been fixed to complete it to "git cmd path\ name" just like Bash completion does. * cy/zsh-completion-SP-in-path: completion: treat results of git ls-tree as file paths zsh: complete unquoted paths with spaces correctly
Diffstat (limited to 't/t9902-completion.sh')
-rwxr-xr-xt/t9902-completion.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh
index 6558eee..3a2c632 100755
--- a/t/t9902-completion.sh
+++ b/t/t9902-completion.sh
@@ -1516,8 +1516,8 @@ test_expect_success 'show completes all refs' '
test_expect_success '<ref>: completes paths' '
test_completion "git show mytag:f" <<-\EOF
- file1 Z
- file2 Z
+ file1Z
+ file2Z
EOF
'
@@ -1526,7 +1526,7 @@ test_expect_success 'complete tree filename with spaces' '
git add "name with spaces" &&
git commit -m spaces &&
test_completion "git show HEAD:nam" <<-\EOF
- name with spaces Z
+ name with spacesZ
EOF
'
@@ -1535,8 +1535,8 @@ test_expect_success 'complete tree filename with metacharacters' '
git add "name with \${meta}" &&
git commit -m meta &&
test_completion "git show HEAD:nam" <<-\EOF
- name with ${meta} Z
- name with spaces Z
+ name with ${meta}Z
+ name with spacesZ
EOF
'