Created
June 7, 2012 21:59
-
-
Save loganlinn/2891880 to your computer and use it in GitHub Desktop.
git shortstat for self in last 24 hours
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --author=`git config user.name` --shortstat --since=yesterday | grep 'files changed' | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "", files, "files changed,", inserted, "insertions(+),", deleted, "deletions(-)"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that don't work when your commit only had 1 file changed, maybe you want
egrep 'files? changed'