Re: [PATCH] t4069: test diff behavior with i-t-a paths
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 11, 2020, 03:29 UTC
- Message-ID
- <xmqqa6z1c12i.fsf@gitster.c.googlers.com>
- In-Reply-To
- <CAPig+cSSBbgGZmKfEZ0P=J4a2=97uifHKvWAa3t6xU7B+bE-Pw@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 8 quoted lines
> On Mon, Aug 10, 2020 at 7:09 PM Raymond E. Pasco <ray@ameretat.dev> wrote: >> More rigidly, it's nice to confirm that it's a diff from the empty blob >> and not from some other random blob. > > The tests can get access to the correct OID of the empty blob without > hardcoding it either via $(test_oid empty_blob) or just as > $EMPTY_BLOB, however, that's the full length hex string, so you'd > still need to do some tweaking.
If the tests do truly care about these exact objects, then using "--full-index" would be a good way to compare with $EMPTY_BLOB and/or $ZERO_OID and such.