mirror of
https://github.com/notwa/rc
synced 2024-11-05 06:29:02 -08:00
7 lines
171 B
Text
7 lines
171 B
Text
|
#!/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 "$@"
|