Created
October 29, 2018 13:23
-
-
Save Mark24Code/94faddf82d4fde234fb26f01072773c2 to your computer and use it in GitHub Desktop.
计算代码量
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 --numstat --pretty="%H" <HashStart>..<HashEnd> | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d,-%d\n",plus,minus)}'\n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment