Skip to content

Commit 4bca863

Browse files
artojgitster
authored andcommitted
bash completion: add options for 'git fsck'
Signed-off-by: Arto Jonsson <[email protected]> Acked-by: Shawn O. Pearce <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ebd15bf commit 4bca863

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,21 @@ _git_format_patch ()
952952
__git_complete_revlist
953953
}
954954

955+
_git_fsck ()
956+
{
957+
local cur="${COMP_WORDS[COMP_CWORD]}"
958+
case "$cur" in
959+
--*)
960+
__gitcomp "
961+
--tags --root --unreachable --cache --no-reflogs --full
962+
--strict --verbose --lost-found
963+
"
964+
return
965+
;;
966+
esac
967+
COMPREPLY=()
968+
}
969+
955970
_git_gc ()
956971
{
957972
local cur="${COMP_WORDS[COMP_CWORD]}"
@@ -1880,6 +1895,7 @@ _git ()
18801895
diff) _git_diff ;;
18811896
fetch) _git_fetch ;;
18821897
format-patch) _git_format_patch ;;
1898+
fsck) _git_fsck ;;
18831899
gc) _git_gc ;;
18841900
grep) _git_grep ;;
18851901
help) _git_help ;;

0 commit comments

Comments
 (0)