Skip to content

Commit 5d64fb2

Browse files
felipecgitster
authored andcommitted
completion: zsh: simplify file_direct
It's exactly the same as __gitcomp_file() with no prefix. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent cf6ce01 commit 5d64fb2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contrib/completion/git-completion.zsh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ __gitcomp_nl_append ()
124124

125125
__gitcomp_file_direct ()
126126
{
127-
emulate -L zsh
128-
129-
compadd -f -- ${(f)1} && _ret=0
127+
__gitcomp_file "$1" ''
130128
}
131129

132130
__gitcomp_file ()

0 commit comments

Comments
 (0)