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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 15, 2008, 17:42 UTC
Message-ID
<7vhcgaglq5.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080215172043.GA24221@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> By "it" I assume you mean "the sha1 of the empty tree", meaning to not
> include the {} bit at all?
Yes, that's what I meant.
Show 5 quoted lines
> I am fine with that, as I don't think anyone has even mentioned a
> workflow where such a shorthand would be beneficial to users. The only
> one I can think of is to represent some tree using diff tools (e.g., "git
> diff --stat {} HEAD" instead of some variant on ls-files), but I have
> never once actually wanted to do that.
Likewise.
> Should I re-send, or do you want to just markup the existing patches?

Shouldn't the previous one that uses the hardcoded empty tree object name good enough that is already on 'pu'?

Previous: Jeff KingNext: Jeff King
Message 6 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.