Created
June 20, 2012 16:59
-
-
Save sumpygump/2960935 to your computer and use it in GitHub Desktop.
codereview bash script
This file contains 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/bash | |
if [ -z "$1" -o -z "$2" ]; then | |
echo "usage: $0 <repository> <username>" | |
exit | |
fi | |
REPO=$1 | |
USER=$2 | |
PAST=`date +"%Y-%m-%d" -d "-6 months"` | |
NOW=`date +"%Y-%m-%d"` | |
svn log -v "$REPO" -r {$PAST}:{$NOW} | sed -n '/'$USER'/,/-----$/ p' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment