Re: GSoC draft proposal: Line-level history browser
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 20, 2010, 20:57 UTC
- Message-ID
- <7vbpeibtij.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <81b0412b1003201335g7b37c51mfa3e2280210ebb7e@mail.gmail.com>
Alex Riesen <raa.lkml@gmail.com> writes:
Show 6 quoted lines
> On Sat, Mar 20, 2010 at 10:18, Bo Yang <struggleyb.nku@gmail.com> wrote: >> <line range> >> Its format should be <start pos>..<end pos> or just a <line number>. > > You might want to reconsider the line range syntax. Exactly the same syntax > is already used to specify a commit range, so reusing it may lead to confusion.
I would actually recommend you take a look at -L option from blame. What I use most often and find very handy myself is this pattern:
blame -L '/^void some_function()/,/^}/' -- path
as I do not have to count the line numbers.
There also was a discussion on allowing more than one -L to blame, which I think is applicable to this feature. Check the list archive for the past few months.