Skip to content

Instantly share code, notes, and snippets.

@wjlafrance
Created August 31, 2012 16:43
Show Gist options
  • Save wjlafrance/3555663 to your computer and use it in GitHub Desktop.
Save wjlafrance/3555663 to your computer and use it in GitHub Desktop.
[11:42:38] [william@home ~]$ cat ~/bin/gitstat
#!/bin/bash
echo "working: `git diff | grep ^\- | wc -l | tr -d ' '` deletions, `git diff | grep ^\+ | wc -l | tr -d ' '` insertions"
echo "staged: `git diff --cached | grep ^\- | wc -l | tr -d ' '` deletions, `git diff --cached | grep ^\+ | wc -l | tr -d ' '` insertions"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment