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

Re: [PATCH] add--interactive: handle initial commit better

From
Jeff King <peff@peff.net>
Date
Feb 13, 2008, 13:15 UTC
Message-ID
<20080213131523.GA3266@coredump.intra.peff.net>
In-Reply-To
<m3fxvxc87u.fsf@localhost.localdomain>
On Wed, Feb 13, 2008 at 05:11:10AM -0800, Jakub Narebski wrote:
Show 7 quoted lines
> > 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...

You still need my patch, unless you want to create the empty tree object in the databsae. The existence of the object and its name are separate. If you want to add a magic ref or syntax that maps to the correct SHA-1, then that makes sense to me.

-Peff
Previous: Jakub NarebskiNext: Johannes Schindelin
Message 9 of 13 in “[Bug] git add -i fails in multiple ways prior to first commit.”
  1. Rhodes, KateFeb 12, 2008
  2. Jeff KingFeb 13, 2008
  3. Jakub NarebskiFeb 13, 2008
  4. Jeff KingFeb 13, 2008
  5. add--interactive: handle initial commit betterJeff King, Feb 13, 2008
  6. Jeff KingFeb 13, 2008
  7. Johannes SchindelinFeb 13, 2008
  8. Jakub NarebskiFeb 13, 2008
  9. Jeff KingFeb 13, 2008
  10. Johannes SchindelinFeb 13, 2008
  11. Johannes SchindelinFeb 13, 2008
  12. Junio C HamanoFeb 13, 2008
  13. Jeff KingFeb 13, 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.