Re: [PATCH 09/37] t6020: Modernize style a bit
On Tue, Sep 21, 2010 at 7:44 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 16 quoted lines
> Elijah Newren <newren@gmail.com> writes:
>
>>> The old version requested a particular kind of failure. Are you saying
>>> that with modern 'git merge' all non-zero exit codes mean the same kind of
>>> failure?
>>
>> No, I'm saying that I don't think the test meant to try to distinguish
>> between exit codes.
>
> The check for status 1 comes from 72d1216 (New test case: merge with
> directory/file conflicts, 2005-12-03), and if you read git-merge.sh from
> that era, you would notice that at least we do not want to see status 2
> (merge wrapper failed in a bad way) from this test. git-merge was
> designed to exit with status 1 when (and only when) the merge request was
> reasonable, it did its best effort and left conflict to be resolved in the
> working tree.
Indeed; looks like I didn't check closely enough.