git: optimize changed lines extraction

- use "git diff --shortstat" to replace 3 different calls to "git diff"
- drop usage of awk