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>
This commit is contained in:

committed by
Junio C Hamano

parent
5d64fb2051
commit
46af9b3719
@ -104,11 +104,6 @@ __gitcomp_direct ()
|
|||||||
compadd -Q -S '' -- ${(f)1} && _ret=0
|
compadd -Q -S '' -- ${(f)1} && _ret=0
|
||||||
}
|
}
|
||||||
|
|
||||||
__gitcomp_direct_append ()
|
|
||||||
{
|
|
||||||
__gitcomp_direct "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
__gitcomp_nl ()
|
__gitcomp_nl ()
|
||||||
{
|
{
|
||||||
emulate -L zsh
|
emulate -L zsh
|
||||||
@ -117,6 +112,18 @@ __gitcomp_nl ()
|
|||||||
compadd -Q -S "${4- }" -p "${2-}" -- ${(f)1} && _ret=0
|
compadd -Q -S "${4- }" -p "${2-}" -- ${(f)1} && _ret=0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__gitcomp_file ()
|
||||||
|
{
|
||||||
|
emulate -L zsh
|
||||||
|
|
||||||
|
compadd -f -p "${2-}" -- ${(f)1} && _ret=0
|
||||||
|
}
|
||||||
|
|
||||||
|
__gitcomp_direct_append ()
|
||||||
|
{
|
||||||
|
__gitcomp_direct "$@"
|
||||||
|
}
|
||||||
|
|
||||||
__gitcomp_nl_append ()
|
__gitcomp_nl_append ()
|
||||||
{
|
{
|
||||||
__gitcomp_nl "$@"
|
__gitcomp_nl "$@"
|
||||||
@ -124,14 +131,7 @@ __gitcomp_nl_append ()
|
|||||||
|
|
||||||
__gitcomp_file_direct ()
|
__gitcomp_file_direct ()
|
||||||
{
|
{
|
||||||
__gitcomp_file "$1" ''
|
__gitcomp_file "$1" ""
|
||||||
}
|
|
||||||
|
|
||||||
__gitcomp_file ()
|
|
||||||
{
|
|
||||||
emulate -L zsh
|
|
||||||
|
|
||||||
compadd -f -p "${2-}" -- ${(f)1} && _ret=0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__git_zsh_bash_func ()
|
__git_zsh_bash_func ()
|
||||||
|
Reference in New Issue
Block a user