Skip to content

Instantly share code, notes, and snippets.

@jleedev
Created August 25, 2011 00:35
Show Gist options
  • Select an option

  • Save jleedev/1169666 to your computer and use it in GitHub Desktop.

Select an option

Save jleedev/1169666 to your computer and use it in GitHub Desktop.
#!/bin/sh
export PAGER=
ref=HEAD
old=ORIG_HEAD
git rev-parse --short "$old" | tr -d '\n'
printf ..
git rev-parse --short "$ref"
git diff --stat --summary "$old" "$ref"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment