aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorArto Jonsson <ajonsson@kapsi.fi>2009-03-22 20:49:07 +0200
committerJunio C Hamano <gitster@pobox.com>2009-03-22 17:41:57 -0700
commit4bca86367bff80ad3c04e282a1aa9ed66db26aa1 (patch)
tree16c3e3304b779ea7a26023cb75f17aa8060902fb /contrib
parentebd15bf0d732db7dec4cfd8bbfa2c7430b6e875c (diff)
downloadgit-4bca86367bff80ad3c04e282a1aa9ed66db26aa1.tar.gz
git-4bca86367bff80ad3c04e282a1aa9ed66db26aa1.tar.xz
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 6bc32df17..10e36a7b0 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -952,6 +952,21 @@ _git_format_patch ()
__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 ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
@@ -1880,6 +1895,7 @@ _git ()
diff) _git_diff ;;
fetch) _git_fetch ;;
format-patch) _git_format_patch ;;
+ fsck) _git_fsck ;;
gc) _git_gc ;;
grep) _git_grep ;;
help) _git_help ;;