When I do a git diff
or a git log -p
, how do I get line numbers of the source file(s) inlined with the output?
I tried to look it up
I like to use git difftool
with meld as my difftool. It's easier to look at than git diff
, has a nice side-by-side gui comparison, and shows line numbers on each side.
I just wrote git diffn over the last few days to be a drop-in replacement for git diff
on the command-line. Give it a shot. See my other answer here.