Created
August 19, 2012 18:10
-
-
Save geovanisouza92/3396818 to your computer and use it in GitHub Desktop.
[Git] Listando quais commits alteraram os arquivos do repositório
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 | |
CHRONOS_DIR=chronos_dir | |
rm -rf $CHRONOS_DIR | |
mkdir $CHRONOS_DIR | |
if [ -e $CHRONOS_DIR ]; then | |
for file in $(git ls-files); do | |
echo Chronos for $file | |
filename=$(basename $file) | |
for rev in $(git blame $file | cut -d ' ' -f1 | grep '^[^\^0]' | sort -u); do | |
git log --pretty='%H %ai' | grep $rev >> $CHRONOS_DIR/$filename.chronos | |
done | |
done | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment