* [PATCH 4/9] add missing long option to 'git grep' bash competion
@ 2009-08-08 8:56 Emmanuel Trillaud
2009-08-08 19:48 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Emmanuel Trillaud @ 2009-08-08 8:56 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: git
according to the 'git-grep' man page, the following long options are missing
from the 'git grep' bash completion :
--null
--color
--no-color
Signed-off-by: Emmanuel Trillaud <etrillaud@gmail.com>
---
contrib/completion/git-completion.bash | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index f56733b..a4e78d5 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1057,7 +1057,9 @@ _git_grep ()
--extended-regexp --basic-regexp --fixed-strings
--files-with-matches --name-only
--files-without-match
+ --null
--count
+ --color --no-color
--and --or --not --all-match
"
return
--
1.6.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 4/9] add missing long option to 'git grep' bash competion
2009-08-08 8:56 [PATCH 4/9] add missing long option to 'git grep' bash competion Emmanuel Trillaud
@ 2009-08-08 19:48 ` Junio C Hamano
2009-08-08 20:07 ` Emmanuel Trillaud
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2009-08-08 19:48 UTC (permalink / raw)
To: Emmanuel Trillaud; +Cc: Shawn O. Pearce, git
Emmanuel Trillaud <etrillaud@gmail.com> writes:
> according to the 'git-grep' man page, the following long options are missing
> from the 'git grep' bash completion :
> --null
> --color
> --no-color
I do not think completion's purpose should be to offer everything
available under the sun, so "according to manpage these are missing" can
never be a good justification for patches in this series.
Does it even make sense to complete --null in an interactive invocation?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 4/9] add missing long option to 'git grep' bash competion
2009-08-08 19:48 ` Junio C Hamano
@ 2009-08-08 20:07 ` Emmanuel Trillaud
0 siblings, 0 replies; 3+ messages in thread
From: Emmanuel Trillaud @ 2009-08-08 20:07 UTC (permalink / raw)
To: Junio C Hamano, git
> > according to the 'git-grep' man page, the following long options are
> > missing from the 'git grep' bash completion :
> > --null
> > --color
> > --no-color
>
> I do not think completion's purpose should be to offer everything
> available under the sun, so "according to manpage these are missing" can
> never be a good justification for patches in this series.
When I saw that completion for the long options of 'git checkout' was
mising, I just start looking around the docs to see if there wasn't other
git commands with some missing completions. I see now it was a wrong way
to update the git bash completion. I will soon come back with a new set
of (more reasonnable) patches.
Emmanuel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-08 20:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-08 8:56 [PATCH 4/9] add missing long option to 'git grep' bash competion Emmanuel Trillaud
2009-08-08 19:48 ` Junio C Hamano
2009-08-08 20:07 ` Emmanuel Trillaud
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).