mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-06-01 12:56:04 +02:00
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.
This commit is contained in:
parent
16684952fb
commit
6a3de994af
|
@ -1,3 +1,8 @@
|
|||
2015-12-05 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 36957: Completion/Unix/Command/_git: _git: Apply matchspecs to
|
||||
filename completion such as 'git log f/b<TAB>' → 'foo/bar.txt's
|
||||
|
||||
2015-12-04 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 37305: Src/params.c, Test/A06assign.ztst,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue