Re: [PATCH/RFC] Add [] as an alias for a reference to the empty tree
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- May 10, 2010, 09:51 UTC
- Message-ID
- <AANLkTinsofcjlVmnMtW7mONO8zGQd2eT9rMEynVNchsR@mail.gmail.com>
- In-Reply-To
- <20100510092054.GA2602@coredump.intra.peff.net>
Heya,
On Mon, May 10, 2010 at 11:20, Jeff King <peff@peff.net> wrote:
>> However, if INDEX, WORKTREE and EMPTY are preferred as syntactic sugar >> tokes, then that is fine by me.
Must it be ALL CAPS? In Mercurial the fairly elegant 'nil' is used for the empty commit, why can't we do the same?
> So certainly if you want to do EMPTY, I wouldn't let the lack of the > other two hold you back. The only reason they are related at all is that > they would probably share a syntax, if the other two ever even get > implemented.
I still don't see the point in having INDEX and WORKTREE, especially since they're so CAPSY. Almost as if they're supposed to be environment variables.
-- Cheers, Sverre Rabbelier