bash completion: Add completion for 'git clean'
Add completions for all long options specified in the docs --dry-run --quiet Signed-off-by: Lee Marlow <lee.marlow@gmail.com> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
3eb1101207
commit
4181c7e8a7
|
@ -667,6 +667,20 @@ _git_cherry_pick ()
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_git_clean ()
|
||||||
|
{
|
||||||
|
__git_has_doubledash && return
|
||||||
|
|
||||||
|
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
|
case "$cur" in
|
||||||
|
--*)
|
||||||
|
__gitcomp "--dry-run --quiet"
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
COMPREPLY=()
|
||||||
|
}
|
||||||
|
|
||||||
_git_clone ()
|
_git_clone ()
|
||||||
{
|
{
|
||||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
|
@ -1523,6 +1537,7 @@ _git ()
|
||||||
checkout) _git_checkout ;;
|
checkout) _git_checkout ;;
|
||||||
cherry) _git_cherry ;;
|
cherry) _git_cherry ;;
|
||||||
cherry-pick) _git_cherry_pick ;;
|
cherry-pick) _git_cherry_pick ;;
|
||||||
|
clean) _git_clean ;;
|
||||||
clone) _git_clone ;;
|
clone) _git_clone ;;
|
||||||
commit) _git_commit ;;
|
commit) _git_commit ;;
|
||||||
config) _git_config ;;
|
config) _git_config ;;
|
||||||
|
|
Loading…
Reference in New Issue