From: Junio C Hamano Date: Tue, 13 Sep 2016 23:32:17 GMT Subject: Re: [RFC/PATCH 16/17] diff: buffer output in emit_line_0 Message-ID: In-Reply-To: Stefan Beller writes: > So would we rather want to keep the ecbdata around for each file pair and > just reference that? I thought we deliberately want to avoid ecbdata, so maybe > we rather want to have another struct that keeps path related information > around (pointer to the blob and white space information). I would expect that there would be two structs, one per path "struct buffered_patch" that has the per-path thing, and another per line "struct buffered_patch_line" that describes what each line is, and has a pointer to the former.