Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: Wrap up of Line Level History Browser [long]

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:22

Thomas Rast wrote:
For me it replaces a manual iterative process to find out in what ways
a function was patched until it came to have its current shape:

 git-blame the area, find the most recent commit C
 while 1:
   git show C
   if that explains the code: break
   git-blame the area in C^
   find the most recent commit and call it C again
[...]
All of this can now be replaced by a simple

 git log -L <range> <filename>

A good example that I did a lot of testing with:

 git log --graph be58e70d^ -L /builtin_funcname_pattern/,/^}/ diff.c
Thanks. (And thanks to Bo for implementing it!)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help