Skip to content

Instantly share code, notes, and snippets.

@KushalP
Created May 7, 2010 09:55
Show Gist options
  • Save KushalP/393244 to your computer and use it in GitHub Desktop.
Save KushalP/393244 to your computer and use it in GitHub Desktop.
# replace HEAD with your revision number
# replace 80 with your char limit
git rev-list HEAD |\
xargs -iX sh -c\
"if test \"\$(git show --quiet --pretty=format:%s%n%n%b X | wc -c)\" -lt 80; then echo X; fi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment