All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Matthias Krüger" <matthias.krueger@famsik.de>
To: git@vger.kernel.org
Subject: gitdiffbinstat  -  git diff --shortstat -like output for changes in binary files
Date: Fri, 29 Mar 2013 19:07:32 +0100	[thread overview]
Message-ID: <5155D864.8040007@famsik.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

I use git mostly for game-development which means I have to deal with a 
lot of binary files (images, sound files etc).

When I came to a point where I had run image optimization on a branch, I 
wanted to know of course how much smaller the new branch was in 
comparison to master.
Problem was that 'git diff --stat' would only summerize per-binary-file 
size changes and 'git diff --shortstat' did skip the binary files entirely.

To solve this problem, I wrote a script ("gitdiffbinstat") which 
basically runs 'git diff --stat' and summerizes the output.

The script can be found here: 
https://github.com/matthiaskrgr/gitdiffbinstat/blob/master/gitdiffbinstat.sh
Screenshot of example output is attached.

I wondered what you guys thought about the script, is there a chance to 
perhaps get it included as some kind of helper script into the official 
git repo?


Regards, Matthias

[-- Attachment #2: screenshot.png --]
[-- Type: image/png, Size: 15497 bytes --]

             reply	other threads:[~2013-03-29 18:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-29 18:07 Matthias Krüger [this message]
2013-03-29 18:49 ` gitdiffbinstat - git diff --shortstat -like output for changes in binary files Jeff King
2013-03-29 19:22   ` Matthias Krüger
2013-03-29 19:30   ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5155D864.8040007@famsik.de \
    --to=matthias.krueger@famsik.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.