Re: [PATCH v3] diff --shortstat --dirstat: remove duplicate output

2015-03-05 Thread Junio C Hamano
Mårten Kongstad writes: > v3: change how tests count (part of) the dirstat number of lines: instead of > 'grep -c', use 'grep >filename && test_line_count'. Thanks to Torsten > Bögershausen and SZEDER Gábor for pointing out how to improve the tests. Thanks. I'd squash the following on top befor

[PATCH v3] diff --shortstat --dirstat: remove duplicate output

2015-03-02 Thread Mårten Kongstad
When --shortstat is used in conjunction with --dirstat=changes, git diff will output the dirstat information twice: first as calculated by the 'lines' algorithm, then as calculated by the 'changes' algorithm: $ git diff --dirstat=changes,10 --shortstat v2.2.0..v2.2.1 23 files changed, 453