git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/2] hard-code the empty tree object

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 14, 2008, 12:39 UTC
Message-ID
<alpine.LSU.1.00.0802141238140.30505@racer.site>
In-Reply-To
<20080214103256.GA17951@coredump.intra.peff.net>
Hi,
On Thu, 14 Feb 2008, Jeff King wrote:
> 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, Dscho

Previous: Jeff KingNext: Jeff King
Message 2 of 7 in “hard-code the empty tree object”
  1. 1/2 hard-code the empty tree objectJeff King, Feb 14, 2008
  2. Johannes SchindelinFeb 14, 2008
  3. Jeff KingFeb 14, 2008
  4. Junio C HamanoFeb 15, 2008
  5. Jeff KingFeb 15, 2008
  6. Junio C HamanoFeb 15, 2008
  7. Jeff KingFeb 15, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.