Last active
January 4, 2016 02:29
-
-
Save oieioi/8555682 to your computer and use it in GitHub Desktop.
git でauthor別の差し引き,追加行,削除行を取得する
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
| git log origin/master --since=2014-01-01 --pretty='format:%an' --no-merges --shortstat | awk -F ',' '/^[^ ]/ {name = $1}/^ /{split($2, data, " ");ary[name] += data[1];split($3, data, " ");arydel[name] += data[1]}END{ for (name in ary){ print ary[name] - arydel[name] " line : " name " added " ary[name] " lines, deleted " arydel[name] " lines"}}'|sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment