mirror of
https://github.com/notwa/rc
synced 2024-06-30 19:07:11 -07:00
7 lines
171 B
Plaintext
7 lines
171 B
Plaintext
|
#!/usr/bin/env sh
|
||
|
countdiff() {
|
||
|
git --no-pager diff --stat --no-color --no-index "$1" "$2" \
|
||
|
| awk '/changed/{print $4+$6;a=1}END{if(!a)print 0}'
|
||
|
}
|
||
|
countdiff "$@"
|