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>
Arto Jonsson committed
Mar 22, 2009 at 20:49 UTC
4bca86367bff80ad3c04e282a1aa9ed66db26aa1
1 file changed
+16
contrib/completion/git-completion.bash
+16
@@ -952,6 +952,21 @@ _git_format_patch ()
952
__git_complete_revlist
953
}
954
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
+
970
_git_gc ()
971
{
972
local cur="${COMP_WORDS[COMP_CWORD]}"
@@ -1880,6 +1895,7 @@ _git ()
1895
diff) _git_diff ;;
1896
fetch) _git_fetch ;;
1897
format-patch) _git_format_patch ;;
1898
+ fsck) _git_fsck ;;
1899
gc) _git_gc ;;
1900
grep) _git_grep ;;
1901
help) _git_help ;;