Re: [PATCH] grep: add option to show whole function as context
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Aug 1, 2011, 15:39 UTC
- Message-ID
- <CAGdFq_go0xYy9BZWRDxAFGV95G7V-P9-=7VhsodLd+z-ho09Qw@mail.gmail.com>
- In-Reply-To
- <4E36C840.9000808@lsrfire.ath.cx>
Heya,
On Mon, Aug 1, 2011 at 17:37, René Scharfe <rene.scharfe@lsrfire.ath.cx> wrote:
> Do you mean a diff option to show whole affected functions as context > instead of the fixed number of context lines -U gives you? That sounds > useful as well.
Exactly.
> How about -W? It's not used by GNU grep either.
Why not give it an easy-to-remember long name instead? --show-function-context or such :)
-- Cheers, Sverre Rabbelier