Created
January 16, 2013 18:18
-
-
Save creade/4549383 to your computer and use it in GitHub Desktop.
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/sh | |
IFS=$'\n' | |
TAB=$'\t' | |
#LASTCHECKED=`date +"%s"` | |
LASTCHECKED=1357845445 | |
while true | |
do | |
IGNORED=`git svn rebase` | |
PREFIXES=`git log --since $LASTCHECKED --pretty=format:"%H|%at|%an|"` | |
LASTCHECKED=`date +"%s"` | |
for i in $PREFIXES | |
do | |
SHA=`echo $i | cut -d '|' -f 1` | |
PREFIX=`echo $i | cut -d '|' -f 2-3` | |
SUFFIXES=`git show $SHA --pretty=format:"" --name-status` | |
for i in $SUFFIXES | |
do | |
SUFFIX=`echo $i| sed "s/$TAB/|/g"` | |
echo $PREFIX"|"$SUFFIX | |
done | |
done | |
sleep 30 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment