git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bash completion: add options for 'git fsck'
@ 2009-03-22 18:49 Arto Jonsson
  2009-03-23  0:38 ` Shawn O. Pearce
  0 siblings, 1 reply; 2+ messages in thread
From: Arto Jonsson @ 2009-03-22 18:49 UTC (permalink / raw)
  To: spearce; +Cc: git

Signed-off-by: Arto Jonsson <ajonsson@kapsi.fi>
---
 contrib/completion/git-completion.bash |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index ed235f7..e738830 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 ;;
-- 
1.6.2.GIT

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] bash completion: add options for 'git fsck'
  2009-03-22 18:49 [PATCH] bash completion: add options for 'git fsck' Arto Jonsson
@ 2009-03-23  0:38 ` Shawn O. Pearce
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn O. Pearce @ 2009-03-23  0:38 UTC (permalink / raw)
  To: Arto Jonsson; +Cc: git

Arto Jonsson <ajonsson@kapsi.fi> wrote:
> Signed-off-by: Arto Jonsson <ajonsson@kapsi.fi>

Acked-by: Shawn O. Pearce <spearce@spearce.org>

>  contrib/completion/git-completion.bash |   16 ++++++++++++++++
>  1 files changed, 16 insertions(+), 0 deletions(-)

-- 
Shawn.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-23  0:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-22 18:49 [PATCH] bash completion: add options for 'git fsck' Arto Jonsson
2009-03-23  0:38 ` Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).