I am reading a diff between two revisions, say A..B
, possibly limited to a single file.
Once in a while, I stumble on a hunk that I’d like to investigate in detail. I want to press a key or two and see the commit(s) that introduce the change I’m currently looking at.
Since that is kind of vague, let’s say I want the equivalent of l =L file
RET start,+lines
RET l range
RET, where file
, start
and lines
are taken from the current hunk and range
is the current diff’s range. The log should not be limited to the file, even if the diff was.
I can do this manually but I want to automate it.