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

Re: [RFC/PATCH] commit notes workflow

From
MLMichel Lespinasse <walken@google.com>
Date
Mar 8, 2011, 12:39 UTC
Message-ID
<AANLkTi=ybDr61jH2J+sZq3r+zeyN2KxdguGpKH67wrAe@mail.gmail.com>
In-Reply-To
<20110307233902.GA20447@sigill.intra.peff.net>
On Mon, Mar 7, 2011 at 3:39 PM, Jeff King <peff@peff.net> wrote:
> Yeah, that's my biggest concern. I just really foresee myself getting
> annoyed by typing "--- nOtes ---", or "-- Notes ---". It's just a few
> characters shorter, but "---" is really less error prone.

git often puts comment lines lines (starting with '#') around the commit message. How about just adding one more such comment:

# Lines after this one will be added as git notes

and make it so that any non-empty line entered afterwards does get added as notes ?

Also, I would love to see this functionality in other places such as rebasing (if the original commit has notes attached, I would like these to show up so I can attach these to the rebased commit as well). I realize not everybody would want that, but this could be easily controlled with message hooks...

-- 
Michel "Walken" Lespinasse
A program is never fully debugged until the last user dies.
Previous: Johan HerlandNext: Chris Packham
Message 15 of 27 in “commit notes workflow”
  1. commit notes workflowJeff King, Feb 25, 2011
  2. Johan HerlandFeb 25, 2011
  3. Jeff KingMar 1, 2011
  4. Johan HerlandMar 2, 2011
  5. Sverre RabbelierMar 3, 2011
  6. Junio C HamanoMar 3, 2011
  7. Sverre RabbelierMar 3, 2011
  8. commit, status: #comment diff output in verbose modeIan Ward Comfort, Mar 3, 2011
  9. Sverre RabbelierMar 3, 2011
  10. Jeff KingMar 7, 2011
  11. 1/2 notes: make expand_notes_ref globally accessibleJeff King, Mar 7, 2011
  12. Johan HerlandMar 8, 2011
  13. 2/2 commit: allow editing notes in commit message editorJeff King, Mar 7, 2011
  14. Johan HerlandMar 8, 2011
  15. Michel LespinasseMar 8, 2011
  16. Chris PackhamMar 2, 2011
  17. Drew NorthupMar 2, 2011
  18. Piotr KrukowieckiMar 2, 2011
  19. Junio C HamanoFeb 25, 2011
  20. Drew NorthupFeb 25, 2011
  21. Jeff KingMar 1, 2011
  22. Drew NorthupMar 1, 2011
  23. Jeff KingMar 1, 2011
  24. Drew NorthupMar 1, 2011
  25. Michael J GruberFeb 27, 2011
  26. Jeff KingMar 1, 2011
  27. Yann DirsonMar 9, 2011

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.