31,040
edits
m (→Statistics) |
|||
| Line 233: | Line 233: | ||
* To get total number of added/deleted lines: | * To get total number of added/deleted lines: | ||
<source lang="bash"> | <source lang="bash"> | ||
git log --ancestry-path --numstat --pretty="%H" id_start.. | git log --ancestry-path --numstat --pretty="%H" id_start..id_end | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}' | ||
</source> | </source> | ||