Created
September 4, 2015 15:16
-
-
Save choffmeister/fb9d0d7991a59a1bdc2d to your computer and use it in GitHub Desktop.
Git count added/deleted lines
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/bash | |
git diff master..HEAD --numstat | grep 'src/' | awk '{a+=$1; d+=$2} END {print a, d}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment