Skip to content

Instantly share code, notes, and snippets.

@macks
Created February 27, 2011 12:43
Show Gist options
  • Save macks/846152 to your computer and use it in GitHub Desktop.
Save macks/846152 to your computer and use it in GitHub Desktop.
Show daily diffstat summary in svn working copy
#!/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