Re: [PATCH] bash completion: Add completion for 'git grep'

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Lee Marlow <lee.marlow@...>
Cc: <git@...>
Date: Saturday, August 2, 2008 - 5:05 pm

Lee Marlow <lee.marlow@gmail.com> wrote:


Hmm.  The has_doubledash test seems redundant since we don't do
anything with args that aren't --foo.  Even though git-grep will
accept a tree-ish and thus completion of __git_refs here may
make sense.

I wonder if we shouldn't just add to the end something like:

	__gitcomp "$(__git_refs)"

like the _git_reset function does.  Then we can complete a tree-ish
for searching, as well as honor -- to stop tree-ish completion and
go back to file/directory completion.

But that is very much a user question.  Do users mostly search a
file in the current working directory, or do they mostly search
a tree-ish?

-- 
Shawn.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] bash completion: Add completion for 'git grep', Shawn O. Pearce, (Mon Aug 4, 10:53 am)
Re: [PATCH] bash completion: Add completion for 'git grep', Shawn O. Pearce, (Sat Aug 2, 5:05 pm)
Re: [PATCH] bash completion: Add completion for 'git grep', Shawn O. Pearce, (Mon Aug 4, 12:06 am)
Re: [PATCH] bash completion: Add completion for 'git grep', Shawn O. Pearce, (Mon Aug 4, 10:52 am)