Browse Source

bash completion: add options for 'git fsck'

Signed-off-by: Arto Jonsson <ajonsson@kapsi.fi>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Arto Jonsson 16 years ago committed by Junio C Hamano
parent
commit
4bca86367b
  1. 16
      contrib/completion/git-completion.bash

16
contrib/completion/git-completion.bash

@ -952,6 +952,21 @@ _git_format_patch ()
__git_complete_revlist __git_complete_revlist
} }


_git_fsck ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
--*)
__gitcomp "
--tags --root --unreachable --cache --no-reflogs --full
--strict --verbose --lost-found
"
return
;;
esac
COMPREPLY=()
}

_git_gc () _git_gc ()
{ {
local cur="${COMP_WORDS[COMP_CWORD]}" local cur="${COMP_WORDS[COMP_CWORD]}"
@ -1880,6 +1895,7 @@ _git ()
diff) _git_diff ;; diff) _git_diff ;;
fetch) _git_fetch ;; fetch) _git_fetch ;;
format-patch) _git_format_patch ;; format-patch) _git_format_patch ;;
fsck) _git_fsck ;;
gc) _git_gc ;; gc) _git_gc ;;
grep) _git_grep ;; grep) _git_grep ;;
help) _git_help ;; help) _git_help ;;

Loading…
Cancel
Save