You are not logged in.

#1 2012-05-21 14:47:52

matthiaskrgr
Member
Registered: 2012-04-03
Posts: 28
Website

gitdiffbinstat -- git diff --shortstat for binary files

You may know  git diff --shortstat  which summarizes the line-changes between branches/commits/tags etc.

When I had a branch were I ran optipng on many images I was annoyed by the fact that  git diff --shortstat  would only summarize changes of text files, but not changes of binary files.

That's why I made gitdiffbinstat.

The script gets diffs between the current  HEAD  and some other branch/commit/tag  and summarizes the file changes (but also line changes) so you can easily see how many additional bytes certain branch would add to HEAD if it was merged, or how much bigger a release got from version "foo.2" to current HEAD etc smile

gitdiffbinstat.png

The latest version 2.5-1 can also tell you about files which were moved (and not changed), unfortunately this increased the output-clutter. (Ideas how to make the output more structured are appreciated! smile )



You can install the script via aur https://aur.archlinux.org/packages.php?ID=55519

Feedback is welcome smile

Regards,
Matthias

Offline

Board footer

Powered by FluxBB