Re: [PATCH] git-apply: fix --3way with binary patch
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 28, 2021, 21:01 UTC
- Message-ID
- <xmqqpmv2885j.fsf@gitster.g>
- In-Reply-To
- <CAMKO5CszNvzd6Y5VdTqw6JDGxOyQ-CNA3fxgf5ChQbGwZ9v_rw@mail.gmail.com>
Jerry Zhang <jerry@skydio.com> writes:
Show 12 quoted lines
> Well it isn't really failing right? Failing 3way would be not finding
> the object ids in the database, which would indicate a failure to
> even attempt 3way. This would result in fallback to direct application.
> What we're seeing is that 3way application results in conflicts where
> direct application would not result in conflicts. Having a conflict is
> currently not a reason for the code to fall back to direct application,
> here is the relevant line:
> "
> try_threeway(state, &image, patch, st, ce) < 0) {
> "
> try_threeway returns 1 in case of conflict, 0 for success, and -1
> for true errors.Yup, I know. That is why I questioned if this "< 0" is a bug in my earlier message in this exchange.
Thanks.