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

Re: [PATCH] Introduce light weight commit annotations

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 10, 2007, 22:11 UTC
Message-ID
<7v4plf7948.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0706091854330.4059@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 14 quoted lines
> With the provided script, edit-commit-annotations, you can add
> after-the-fact annotations to commits, which will be shown by
> the log if the config variable core.showannotations is set.
>
> The annotations are tracked in a new ref, refs/annotations/commits,
> in the same fan-out style as .git/objects/??/*, only that they only
> exist in the object database now.
>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> ---
>
> 	I have the hunch that this will be relatively fast and scalable,
> 	since the tree objects are sorted by name (the name being the
> 	object name of the to-be-annotated commit).

The entries of tree are sorted but not necessarily of uniform length so you end up needing linear search anyway. The fan-out would help with the current tree objects.

It will hurt _if_ we introduce a new tree object format that would give you a quick random-access at an entry, but it is premature to worry about that now.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 6 of 18 in “Introduce light weight commit annotations”
  1. Introduce light weight commit annotationsJohannes Schindelin, Jun 9, 2007
  2. Johan HerlandJun 10, 2007
  3. Johannes SchindelinJun 10, 2007
  4. Johan HerlandJun 10, 2007
  5. Johannes SchindelinJun 10, 2007
  6. Junio C HamanoJun 10, 2007
  7. Johannes SchindelinJun 10, 2007
  8. Junio C HamanoJun 10, 2007
  9. Johannes SchindelinJun 11, 2007
  10. Johannes SchindelinJun 12, 2007
  11. Alex RiesenJun 10, 2007
  12. Alex RiesenJun 10, 2007
  13. Junio C HamanoJun 11, 2007
  14. Nicolas PitreJun 11, 2007
  15. Alex RiesenJun 11, 2007
  16. Junio C HamanoJun 11, 2007
  17. Alex RiesenJun 11, 2007
  18. Johannes SchindelinJun 11, 2007

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.