Subject: Re: Can't diff against the 00000000 revision

From: Andreas Schwab <[email-masked]>
Date: Tue, 12 Jan 2016 19:11:14 +0100

Jeff King <[email-masked]> writes:

> And hopefully that explains why "000000" does not necessarily make a
> good placeholder for "the empty thing". There are multiple empty things,
> and it is not clear what:
>
>   git diff 0000000 1234abcd
>
> means. Is 0000000 a tree? A blob?

Perhaps there should be an easy syntax for an empty thing, something
like 0^{tree} and 0^{blob}.  Not sure whether it is worth the effort,
though.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."