Created
May 25, 2022 18:36
-
-
Save dayvsonlima/0b238d0dd4bfeee2a535fd07b0da0e1e to your computer and use it in GitHub Desktop.
count words added in git
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
alias gitwa='git diff --word-diff=porcelain origin/main | grep -e "^+[^+]" | wc -w | xargs' | |
alias gitwd='git diff --word-diff=porcelain origin/main | grep -e "^-[^-]" | wc -w | xargs' | |
alias gitwdd='git diff --word-diff=porcelain origin/main |grep -e"^+[^+]" -e"^-[^-]"|sed -e's/.//'|sort|uniq -d|wc -w|xargs' | |
alias gitw='echo $(($(gitwa) - $(gitwd)))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment