Is there a way I can dictate formatting to the output of git diff
? When there are multiple files, I'd like some extra blank lines before each file start — that is, before each time it says
diff --git a/filename b/filename
This would help me spot the individual files. Right now I'm piping into BBEdit and then doing a global find-and-replace, and it's getting very old very fast. I don't really need to use a diff tool here, I think; I just want a little control over the text output. (Telling me how to pipe it through sed
or something would probably be cool, though I was sort of hoping that git diff
itself might accept some sort of formatting option.)