Skip to content

Instantly share code, notes, and snippets.

@ibrahima
Created November 28, 2012 06:04
Show Gist options
  • Select an option

  • Save ibrahima/4159317 to your computer and use it in GitHub Desktop.

Select an option

Save ibrahima/4159317 to your computer and use it in GitHub Desktop.
slightly simplified git diff
#!/usr/bin/env sh
git diff --cached --word-diff=porcelain -b --no-prefix | grep "^[\+\-][^\+\-]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment