Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#2021 closed enhancement (fixed)

Remove binary diffs from Git's commit mails

Reported by: karsten Owned by:
Priority: Medium Milestone:
Component: Archived/Development Progress Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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.

Child Tickets

Change History (3)

comment:1 Changed 9 years ago by Sebastian

I'd be fine with removing binary diffs from or-cvs. That would mean we can't use or-cvs mails to reconstruct the commits, but we can't do that anyways when the commit is too large to go through otherwise.

comment:2 Changed 8 years ago by Sebastian

Resolution: fixed
Status: newclosed

Added the --no-binary option.

Note: See TracTickets for help on using tickets.