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?
git diff
git log -p
I tried to look it up
You can try
git blame
on the file. It shows you the committer, commit id, and line number for each line in the file.