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 11, 2007, 01:11 UTC
Message-ID
<7vsl8z2t3s.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070610232016.GB5761@steel.home>
Alex Riesen <raa.lkml@gmail.com> writes:
Show 9 quoted lines
> BTW, the annotations are a bit cumbersome to merge, if this
> implementation is to stay (and I personally would like it to) we may
> have to mention this little inconvenience somewhere.
>
> And can I suggest an interface like the below?
>
>     git notes [[--show] <commit>+] [-d|--delete <commit>+] [-e|--edit <commit>]
>
> With the annotations file being completely removed if it is empty.
That is a saner and more extensible interface.

I'll commit a minimally fixed version (essentially, renaming "annotations" to "notes") of Johannes's and push it out to 'pu' tonight.

I think it is a mistake to use config in Johannes's patch, especially without giving a command line override to disable the call to show_annotations() in a repository that has config.showannotations variable set, because the script primes the input with something like this:

	git log -1 $COMMIT | sed -e 's/^/#/' >$MESSAGE
	git cat-file blob $existing_note >>$MESSAGE

and the first "git log" would have already given you the contents of the existing note ;-).

Previous: Alex RiesenNext: Nicolas Pitre
Message 13 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.