Skip to content

Commit 46af9b3

Browse files
felipecgitster
authored andcommitted
completion: zsh: shuffle functions around
Just to have a nice order. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5d64fb2 commit 46af9b3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

contrib/completion/git-completion.zsh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,6 @@ __gitcomp_direct ()
104104
compadd -Q -S '' -- ${(f)1} && _ret=0
105105
}
106106

107-
__gitcomp_direct_append ()
108-
{
109-
__gitcomp_direct "$@"
110-
}
111-
112107
__gitcomp_nl ()
113108
{
114109
emulate -L zsh
@@ -117,21 +112,26 @@ __gitcomp_nl ()
117112
compadd -Q -S "${4- }" -p "${2-}" -- ${(f)1} && _ret=0
118113
}
119114

120-
__gitcomp_nl_append ()
115+
__gitcomp_file ()
121116
{
122-
__gitcomp_nl "$@"
117+
emulate -L zsh
118+
119+
compadd -f -p "${2-}" -- ${(f)1} && _ret=0
123120
}
124121

125-
__gitcomp_file_direct ()
122+
__gitcomp_direct_append ()
126123
{
127-
__gitcomp_file "$1" ''
124+
__gitcomp_direct "$@"
128125
}
129126

130-
__gitcomp_file ()
127+
__gitcomp_nl_append ()
131128
{
132-
emulate -L zsh
129+
__gitcomp_nl "$@"
130+
}
133131

134-
compadd -f -p "${2-}" -- ${(f)1} && _ret=0
132+
__gitcomp_file_direct ()
133+
{
134+
__gitcomp_file "$1" ""
135135
}
136136

137137
__git_zsh_bash_func ()

0 commit comments

Comments
 (0)