about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-10-25 18:33:51 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-12-05 10:15:39 +0000
commit6a3de994afdb4fe93b0967f1534e3ee31bc7f357 (patch)
tree1bb791e05037b5331e7e7dbd2870ef0ccb1c5a99 /Completion/Unix/Command
parent16684952fbea39879dcbd4356c8d20acad4912b0 (diff)
downloadzsh-6a3de994afdb4fe93b0967f1534e3ee31bc7f357.tar.gz
zsh-6a3de994afdb4fe93b0967f1534e3ee31bc7f357.tar.xz
zsh-6a3de994afdb4fe93b0967f1534e3ee31bc7f357.zip
36957: _git: Apply matchspecs to filename completion such as 'git log f/b<TAB>' → 'foo/bar.txt's
This patch makes 'git log S/e<TAB>' expand to Src/exec.c.  The incumbent
code would run 'git ls-tree S/' and find no matches.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_git2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 6e8e9c665..2030321de 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -6119,7 +6119,7 @@ __git_tree_files () {
   shift
   (( at_least_one_tree_added = 0 ))
   for tree in $*; do
-    tree_files+=(${(ps:\0:)"$(_call_program tree-files git ls-tree $extra_args --name-only -z $tree $Path 2>/dev/null)"})
+    tree_files+=(${(ps:\0:)"$(_call_program tree-files git ls-tree -r $extra_args --name-only -z $tree 2>/dev/null)"})
     __git_command_successful $pipestatus && (( at_least_one_tree_added = 1 ))
   done