I started writing a little bash script like this:
echo lines removed
git diff|ack "^\- "|wc -l
echo lines added
git diff|ack "^\+ "|wc -l
I named it diffstat. Then I googled, and found out there’s a program of the same name already in existence!
And it’s already installed on my machine, so now all I need to do is git diff|diffstat and I get really nice output!
~/Projects/someproject.com on development ?
$ git diff | diffstat
controllers/somethings_controller.rb | 35 ++------------------
models/something.rb | 9 ++---
models/something_something.rb | 2 +
models/something_other.rb | 49 ++++++++++++----------------
views/something_other/_form.html.erb | 18 ++--------
5 files changed, 37 insertions(+), 76 deletions(-)
Looks like this is also what git uses to display pull stats.
⦂∀