[PATCH 3 of 9] grep: add --no-filename option to suppress filename column from output

Idan Kamara idankk86 at gmail.com
Thu Oct 18 17:48:10 CDT 2012

On Fri, Oct 19, 2012 at 12:26 AM, Matt Mackall <mpm at selenic.com> wrote:
> On Sun, 2012-10-14 at 22:54 +0200, Idan Kamara wrote:
> > # HG changeset patch
> > # User Idan Kamara <idankk86 at gmail.com>
> > # Date 1350073245 -7200
> > # Node ID 806bab6620c0308b61a4cf9c0e95927650ccb513
> > # Parent  35568b484500bd199d337b4f2abaa21965a6aa15
> > grep: add --no-filename option to suppress filename column from output
> I've queued the first couple in this series, but can't say I'm excited
> about stuff like this.
> We have far too many command options already. Per-command switches are
> not the way to make a better, more powerful tool. Instead, we should
> focus on generic facilities. For instance, this feature is rendered
> redundant by generic templating support, which is massively more
> flexible.

I actually think grep is one of the least loved commands, so
it could use a couple more useful options.

Regarding this particular one.. yeah it's not that attractive,
especially since we don't have the short option which is the
one people remember if they've been using it with GNU grep.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20121019/d8272a8d/attachment.html>

More information about the Mercurial-devel mailing list