mirror of
https://github.com/notwa/rc
synced 2024-05-20 10:53:23 -07:00
7 lines
171 B
Bash
7 lines
171 B
Bash
#!/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 "$@"
|