Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes: > On Wed, 13 Feb 2008, Jeff King wrote: > > } > > + if (!hashcmp(sha1, empty_tree.sha1)) > > + return &empty_tree; > > return NULL; > > } > > Heh. This is cute. But it is also a bit hard to reference, no? I mean, > you have to remember the SHA-1 of it... > > Maybe {} ? Or NULL? You can do this even without modifying git code, I think, by adding refs/NULL with appropriate sha-1... ^{tree} I think resolves to HEAD^{tree} -- Jakub Narebski Poland ShadeHawk on #git - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html