Remove binary diffs from Git's commit mails
Whenever I add/remove/move binary files in Git, the commit mails contain the full binary diff. These binary diffs bloat the commit mails and aren't useful at all.
What? You say, there shouldn't be any binary files in Git anyway? But... what about libraries and generated PDFs? Don't belong there... can't hear you!
Sebastian says that commit mails are formatted using git-format-patch:
git-format-patch --subject-prefix="$projectname/${refname#refs/heads/}" \
--stdout "$oldrev..$newrev" |
I wonder if we can add --no-binary to this line to display a notice that files changed, but without showing the diff.