Comment 4 for bug 503670

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 503670] Re: bzr grep should be builtin

On 20 February 2010 00:15, Parth Malwankar <email address hidden> wrote:
> I could have a look at this in case vila (or anyone else) is not
> planning to work on this anytime soon.
>
> I was thinking that this could probably be developed as a plugin and in
> a month or so if there are no issues it could be proposed for a merge.

There already is a plugin; this bug just wants it to be included in
bzr's core, or turned into a shipped plugin.

> Regarding the 'bzr grep' command, my understanding is that we want to
> search through the versioned files, not files contained in the working
> directory and not history (hgrep? Bug #161250). Is this correct?

I think at the moment it searches the versioned files. Searching
history would also be good.

>
> hg grep searches history. I am not sure if it has something for searching versioned files.
> Does anyone know how git grep behaves?
>
> What are the important command line options that need to be supported? I
> am assuming it should at least have the commonly used options from unix
> grep.

I think it would be worth getting it in even with no options, or
perhaps just --ignore-case.

--
Martin <http://launchpad.net/~mbp/>