Re: [PATCH 1/2] hard-code the empty tree object
- From
Jeff King <peff@peff.net>
- Date
- Feb 14, 2008, 14:03 UTC
- Message-ID
- <20080214140329.GA3549@coredump.intra.peff.net>
- In-Reply-To
- <alpine.LSU.1.00.0802141238140.30505@racer.site>
On Thu, Feb 14, 2008 at 12:39:01PM +0000, Johannes Schindelin wrote:
Show 7 quoted lines
> > We also hard-code the special ref '{}' as an alias for the empty tree.
> > Users may refer to the empty tree by its sha1 or by '{}'.
>
> Another idea just hit me: why not use "" (i.e. the empty string)? It is
> not a valid ref name, and not a valid filename either...
>
> But maybe that would be _too_ cute,IMHO, that is a bit too cute.
-Peff