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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lee Marlow
Date: Sunday, August 3, 2008 - 12:31 am

On Sat, Aug 2, 2008 at 3:05 PM, Shawn O. Pearce <spearce@spearce.org> wrote:

I haven't found myself using grep to search anything but the current
working directory.  I wonder whether __git_complete_file would be
better than __git_refs.  My issue with __git_complete_file in this
case and also doing completion for 'git mv' is that it falls back to
just __git_refs.  Would it be better if it fell back to __git_refs and
ls-tree for HEAD?  That way when using completion to get to
Documentation/git-grep.txt,  it doesn't also show completions for
Documentation/git-grep.{1,html,xml}.

-Lee
--
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, (Sat Aug 2, 2:05 pm)
Re: [PATCH] bash completion: Add completion for 'git grep', Lee Marlow, (Sun Aug 3, 12:31 am)
Re: [PATCH] bash completion: Add completion for 'git grep', Shawn O. Pearce, (Sun Aug 3, 9:06 pm)
Re: [PATCH] bash completion: Add completion for 'git grep', Shawn O. Pearce, (Mon Aug 4, 7:52 am)
Re: [PATCH] bash completion: Add completion for 'git grep', Shawn O. Pearce, (Mon Aug 4, 7:53 am)