Re: [PATCH] gitk: add support for -G'regex' pickaxe variant
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- May 13, 2013, 21:04 UTC
- Message-ID
- <CALkWK0kVa-9-G8-2HtH1_cd1LY65abU8R4WKcjgkyTSh=xQamw@mail.gmail.com>
- In-Reply-To
- <20130513193320.GC3657@google.com>
Jonathan Nieder wrote:
Show 15 quoted lines
> Martin Langhoff wrote: >> On Mon, May 13, 2013 at 2:55 PM, Jonathan Nieder <jrnieder@gmail.com> wrote: > >>> My experience is the opposite. I wonder "What did the author of this >>> nonsense comment mean?" or "What is the purpose of this strange >>> condition in this if () statement?". Then "git log -S" finds the >>> culprit >> >> Only if that if () statement looks that way from a single commit. >> That's my point. If the line code bit you are looking at is the result >> of several changes, your log -S will grind a while and find you >> nothing. > > Well, no, it should find the final change that brought it into the > current form. Just like "git blame".
I still don't know exactly what -G and -S do. The documentation can be improved, no? A nice example would definitely help.
Thanks.