Re: [PATCH v2 56/94] apply: move 'struct apply_state' to apply.h
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Jun 8, 2016, 15:25 UTC
- Message-ID
- <CAP8UFD0EwZMs0XotZE3jP1edUOUY87xRSZNPoKPS_sXJc7zE8A@mail.gmail.com>
- In-Reply-To
- <xmqqwpmu2do5.fsf@gitster.mtv.corp.google.com>
On Mon, May 16, 2016 at 6:03 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 19 quoted lines
> Eric Sunshine <sunshine@sunshineco.com> writes: > >> On Wed, May 11, 2016 at 9:17 AM, Christian Couder >> <christian.couder@gmail.com> wrote: >>> To libify `git apply` functionality we must make 'struct apply_state' >>> usable outside "builtin/apply.c". >> >> Why is this patch plopped right in the middle of a bunch of other >> patches which are making functions return -1 rather than die()ing? >> Seems out of place. > > Two possible places that would make more sense are (1) when it is > introduced very early in the series, or (2) when it absorbed all the > file-scope-static global states in the middle of the series. I think > either is fine. > > That would be a good place to end the first batch of the topic. > Then the second batch would be "turn die() into error status that is > propagated upwards".
I moved this patch at the beginning of second batch that I will send hopefully soon...