Skip to content

Instantly share code, notes, and snippets.

@geovanisouza92
Created August 19, 2012 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geovanisouza92/3396818 to your computer and use it in GitHub Desktop.
Save geovanisouza92/3396818 to your computer and use it in GitHub Desktop.
[Git] Listando quais commits alteraram os arquivos do repositório
#! /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