Re: [PATCH 3/4] t: rev-parse-parents: avoid yoda conditions
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 3, 2013, 17:31 UTC
- Message-ID
- <xmqq8uzdu817.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <CAMP44s349-v6xtCvbDzycVj1wBwTdAgLmuGxB0pYn6CmHYkM1Q@mail.gmail.com>
Felipe Contreras <felipe.contreras@gmail.com> writes:
> There are two ways to fix an inconsistency, the other way is to fix > test_cmp. But that would be a change, and change is not welcome in > Git.
If you want to do "test_cmp $actual $expect", you would have to first "fix" people's expectation that "diff A B" produces a change necessary to bring A to B, which would not likely to happen. We do the 'test_cmp expect actual' for a reason.