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

Re: A generalization of git notes from blobs to trees - git metadata?

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 7, 2010, 18:48 UTC
Message-ID
<7vsk9cdgpx.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100207050255.GA17049@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> ... I think you would do better
> to simply store a tree sha1 inside the note blob, and callers who were
> interested in the tree contents could then dereference it and examine as
> they saw fit.  The only caveat is that you need some way of telling git
> that the referenced trees are reachable and not to be pruned.

Thanks for a good summary. To paraphrase the idea, for the "pre-built binaries" use case, I could update the dodoc.sh script (in 'todo'---that is what autobuilds the html and man documentation and updates the corresponding branches at k.org when I push things out to the master branch) to add a note to the commit from 'master' the docs are generated from, and the note would say which commits on html and man branches correspond to that commit. That way, the referenced "trees" are of course protected because they are reachable from html/man refs.

Right?
Previous: Jeff KingNext: Jeff King
Message 15 of 19 in “A generalization of git notes from blobs to trees - git metadata?”
  1. Jon SeymourFeb 6, 2010
  2. Johan HerlandFeb 7, 2010
  3. Junio C HamanoFeb 7, 2010
  4. Jeff KingFeb 7, 2010
  5. Jon SeymourFeb 7, 2010
  6. Jakub NarebskiFeb 7, 2010
  7. Jon SeymourFeb 7, 2010
  8. Jon SeymourFeb 7, 2010
  9. Jeff KingFeb 7, 2010
  10. Junio C HamanoFeb 7, 2010
  11. Steven E. HarrisFeb 8, 2010
  12. Jeff KingFeb 10, 2010
  13. Junio C HamanoFeb 10, 2010
  14. Jeff KingFeb 10, 2010
  15. Junio C HamanoFeb 7, 2010
  16. Jeff KingFeb 7, 2010
  17. Johan HerlandFeb 7, 2010
  18. Jon SeymourFeb 7, 2010
  19. Jon SeymourFeb 7, 2010

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.