Re: [PATCH/RFC] Fix the result of "git grep -l -C <num>"
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Jan 23, 2012, 16:08 UTC
- Message-ID
- <8762g2ieq0.fsf@thomas.inf.ethz.ch>
- In-Reply-To
- <1327334484-35196-1-git-send-email-surfingalbert@gmail.com>
Albert Yale <surfingalbert@gmail.com> writes:
> When combining "git grep -l" with "-C <num>", > the first result is omitted.
[...]
Show 6 quoted lines
> For example, if the following command should output a list of 3 > different files (a.txt, b.txt, c.txt): > > $ git grep -l -C 1 albert_yale > b.txt > c.txt
Nice catch. Can you add a test?
Is -l the only option affected? Why isn't, for example, -L?
--
Thomas Rast
trast@{inf,student}.ethz.ch