completion: add support for sparse-checkout
Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> Acked-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
a402723e48
commit
d031049da3
|
@ -2718,6 +2718,27 @@ _git_show_branch ()
|
||||||
__git_complete_revlist
|
__git_complete_revlist
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_git_sparse_checkout ()
|
||||||
|
{
|
||||||
|
local subcommands="list init set disable"
|
||||||
|
local subcommand="$(__git_find_on_cmdline "$subcommands")"
|
||||||
|
if [ -z "$subcommand" ]; then
|
||||||
|
__gitcomp "$subcommands"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$subcommand,$cur" in
|
||||||
|
init,--*)
|
||||||
|
__gitcomp "--cone"
|
||||||
|
;;
|
||||||
|
set,--*)
|
||||||
|
__gitcomp "--stdin"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
_git_stash ()
|
_git_stash ()
|
||||||
{
|
{
|
||||||
local save_opts='--all --keep-index --no-keep-index --quiet --patch --include-untracked'
|
local save_opts='--all --keep-index --no-keep-index --quiet --patch --include-untracked'
|
||||||
|
|
Loading…
Reference in New Issue