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

Re: Storing state in $GIT_DIR

From
Linus Torvalds <torvalds@osdl.org>
Date
Aug 26, 2005, 05:31 UTC
Message-ID
<Pine.LNX.4.58.0508252219520.3317@g5.osdl.org>
In-Reply-To
<Pine.LNX.4.63.0508260101390.23242@iabervon.org>
On Fri, 26 Aug 2005, Daniel Barkalow wrote:
> 
> I don't think this buys you anything, because then the tag needs to be
> accessible from something, which is the same problem you were trying to
> solve for the commit.
Yes. 

We had an earlier discussion somewhat along these lines, where a "collection" object might be useful. The "tree" object is that, of course, but the tree object really is very strictly structured (and has to be that way). There might be a valid case for an object that can point to an arbitrary collection of other objects, and have a free-form tail to it.

Of course, such an object would inevitably look very much like a generalized "tag" object, so one possibility might be to just allow a tag to have multiple object pointers.

We could easily generalize the tag format: just make it be something like
 - 1 or more lines of "object <sha1>"
 - make the "type " line optional (it used to have an implementation 
   reason: the internal interfaces always used to want to know the type 
   up-front, but we've moved away from that).
 - a single "tag" line to start the free-form section, and to name the 
   collection some way.

That kind of extension shouldn't be too hard, and might make tags much more generally usable (ie you could say "I sign these <n> official releases" or something).

			Linus
Previous: Daniel BarkalowNext: Junio C Hamano
Message 8 of 17 in “Storing state in $GIT_DIR”
  1. Martin LanghoffAug 25, 2005
  2. Linus TorvaldsAug 25, 2005
  3. Martin LanghoffAug 26, 2005
  4. Linus TorvaldsAug 26, 2005
  5. Martin LanghoffAug 26, 2005
  6. Junio C HamanoAug 26, 2005
  7. Daniel BarkalowAug 26, 2005
  8. Linus TorvaldsAug 26, 2005
  9. Junio C HamanoAug 26, 2005
  10. Linus TorvaldsAug 27, 2005
  11. Junio C HamanoAug 26, 2005
  12. Martin LanghoffAug 26, 2005
  13. Eric W. BiedermanAug 26, 2005
  14. Martin LanghoffAug 26, 2005
  15. Eric W. BiedermanAug 26, 2005
  16. Accept -m and friends for initial commits and merge commits.Junio C Hamano, Aug 26, 2005
  17. Martin LanghoffAug 26, 2005

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.