Created
May 10, 2011 23:48
-
-
Save optedoblivion/965630 to your computer and use it in GitHub Desktop.
Repo Sync and Show Diff
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/bash | |
# | |
# | |
# repo forall -c "script.sh" | |
# | |
# | |
OUTPUT="$HOME/reposync.log" | |
echo "" > $OUTPUT | |
LASTHASH=$(git log --pretty=oneline|awk '{ print $1 }'| head -n 1) | |
git pull --rebase | |
HASHLIST=$(git log --pretty=oneline|awk '{print $1 }' | xargs) | |
echo "$HASHLIST" | while read hash; | |
do | |
if [ "$hash" == "$LASTHASH" ]; then | |
exit | |
fi | |
git rev-list $hash --count=1 --pretty=oneline >> $OUTPUT | |
done |
thx now it can just show the logs. Someone in cm-dev wanted this, so meh.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git rev-list github/gingerbread --count=1