Created
February 27, 2011 12:43
-
-
Save macks/846152 to your computer and use it in GitHub Desktop.
Show daily diffstat summary in svn working copy
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
#!/bin/sh | |
from=$(date -d "${1:-today}" +%Y-%m-%d) | |
to=$(date -d "${2:-tomorrow}" +%Y-%m-%d) | |
d=$from | |
while true; do | |
next=$(date -d "$d + 1day" +%Y-%m-%d) | |
echo -n "$d:" | |
svn diff -r "{$d}:{$next}" | diffstat -s -m | |
d=$next | |
test $d = $to && break | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment