Skip to content

Instantly share code, notes, and snippets.

@creade
Created January 16, 2013 18:18
Show Gist options
  • Save creade/4549383 to your computer and use it in GitHub Desktop.
Save creade/4549383 to your computer and use it in GitHub Desktop.
#!/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