I\'m having trouble figuring out how to use git blame
for getting the set of commits that ever touched a given range of lines. There are similar questi
A few thoughts..
This sounds similar to this post, and it looks like you might get close with something like this:
git blame -L '/variable_name *= */',+1
As long as you know the definition to match against (for the regex).
There is a thread discussion here, about using tig
and git gui
(which apparently might handle this). I haven't tried this myself yet, so can't verify it (I'll give this a try later).