Re: [RFC/PATCH 16/17] diff: buffer output in emit_line_0
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 13, 2016, 23:32 UTC
- Message-ID
- <xmqq60pztlz2.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAGZ79kb4Rm=AT-hFutXW5jhZRL0ThDFr789=AbxKC-o+jQ341g@mail.gmail.com>
Stefan Beller <sbeller@google.com> 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.