add git churn alias

taken from 4fbca97cd1
This commit is contained in:
Nick Nisi
2014-04-05 15:20:32 -05:00
parent f3684ab8ae
commit 638fdcc844

View File

@@ -32,6 +32,7 @@
undo = reset --soft
# show what I did today
day = "!sh -c 'git log --reverse --no-merges --branches=* --date=local --after=\"yesterday 11:59PM\" --author=\"`git config --get user.name`\"'"
churn = "!f() { git log --all -M -C --name-only --format='format:' \"$@\" | sort | grep -v '^$' | uniq -c | sort | awk 'BEGIN {print \"count\tfile\"} {print $1 \"\t\" $2}' | sort -g; }; f"
# assume aliases
assume = update-index --assume-unchanged