Skip to content

Instantly share code, notes, and snippets.

@mpasternacki
Created November 23, 2010 13:53
Show Gist options
  • Save mpasternacki/711788 to your computer and use it in GitHub Desktop.
Save mpasternacki/711788 to your computer and use it in GitHub Desktop.
Full-width diffstat "porcelain" for git
#!/bin/bash
COLUMNS=`stty size | cut -d' ' -f2`
exec git diff --stat=$COLUMNS,$(($COLUMNS - 20)) "${@}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment