completion: zsh: shuffle functions around

Just to have a nice order. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Oct 27, 2020 at 20:07 UTC 46af9b371929c3c3c9cc0f5b4aa9bcb3089e6405
1 file changed +12 -12
contrib/completion/git-completion.zsh
+12 -12
@@ -104,11 +104,6 @@ __gitcomp_direct ()
104 compadd -Q -S '' -- ${(f)1} && _ret=0
105 }
106
107 -__gitcomp_direct_append ()
108 -{
109 - __gitcomp_direct "$@"
110 -}
111 -
107 __gitcomp_nl ()
108 {
109 emulate -L zsh
@@ -117,21 +112,26 @@ __gitcomp_nl ()
112 compadd -Q -S "${4- }" -p "${2-}" -- ${(f)1} && _ret=0
113 }
114
120 -__gitcomp_nl_append ()
115 +__gitcomp_file ()
116 {
122 - __gitcomp_nl "$@"
117 + emulate -L zsh
118 +
119 + compadd -f -p "${2-}" -- ${(f)1} && _ret=0
120 }
121
125 -__gitcomp_file_direct ()
122 +__gitcomp_direct_append ()
123 {
127 - __gitcomp_file "$1" ''
124 + __gitcomp_direct "$@"
125 }
126
130 -__gitcomp_file ()
127 +__gitcomp_nl_append ()
128 {
132 - emulate -L zsh
129 + __gitcomp_nl "$@"
130 +}
131
134 - compadd -f -p "${2-}" -- ${(f)1} && _ret=0
132 +__gitcomp_file_direct ()
133 +{
134 + __gitcomp_file "$1" ""
135 }
136
137 __git_zsh_bash_func ()