Re: [PATCH v3 02/11] diff: export diffstat interface

2019-08-27 Thread Johannes Schindelin
Hi Junio, On Wed, 31 Jul 2019, Junio C Hamano wrote: > "Daniel Ferreira via GitGitGadget" writes: > > > @@ -6273,12 +6257,7 @@ void diff_flush(struct diff_options *options) > > dirstat_by_line) { > > struct diffstat_t diffstat; > > > > - memset(&diffstat, 0, sizeof(

Re: [PATCH v3 02/11] diff: export diffstat interface

2019-07-31 Thread Junio C Hamano
"Daniel Ferreira via GitGitGadget" writes: > @@ -6273,12 +6257,7 @@ void diff_flush(struct diff_options *options) > dirstat_by_line) { > struct diffstat_t diffstat; > > - memset(&diffstat, 0, sizeof(struct diffstat_t)); > - for (i = 0; i < q->nr;

[PATCH v3 02/11] diff: export diffstat interface

2019-07-16 Thread Daniel Ferreira via GitGitGadget
From: Daniel Ferreira Make the diffstat interface (namely, the diffstat_t struct and compute_diffstat) no longer be internal to diff.c and allow it to be used by other parts of git. This is helpful for code that may want to easily extract information from files using the diff machinery, while fl