From 6a3de994afdb4fe93b0967f1534e3ee31bc7f357 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 25 Oct 2015 18:33:51 +0000 Subject: 36957: _git: Apply matchspecs to filename completion such as 'git log f/b' → 'foo/bar.txt's MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch makes 'git log S/e' expand to Src/exec.c. The incumbent code would run 'git ls-tree S/' and find no matches. --- Completion/Unix/Command/_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') 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 -- cgit 1.4.1