Last year I wrote a gawk script that changes the output of git diff to
prepend the line number for each line. I find it useful sometimes when I
need to diff working tree, although it's not limited to that. Maybe it is
useful to someone here?
$ git diff HEAD~1 |showlinenum.awk
diff --git a/doc.txt b/doc.txt
index fae6176..6ca8c26 100644
@@ -1,3 +1,3 @@
You can download it from here:
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.