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

log --format existence of notes?

From
Bence Ferdinandy <bence@ferdinandy.com>
Date
Nov 15, 2024, 22:00 UTC
Message-ID
<D5N39IJA0WDQ.2WH1MNIP77X2J@ferdinandy.com>
Hi,
based on the man pages it doesn't seem possible, but maybe I'm missing something.

I would like to put together a "log --format=" which is similar to --oneline, but where if there's a note for the commit it's marked with e.g. a notebook symbol. There's %N, but that prints the entire note, so it doesn't work well with one commit per line.

E.g. something like this, where Taylor's commit does not have a note, but mine do:

eb12efd995 2024-10-08 Bence Ferdin.. remote set-head: refactor for readability 📓 a189f4e077 2024-09-28 Bence Ferdin.. refs: atomically record overwritten ref in update_symref 📓 ae0b28db8c 2024-10-19 Bence Ferdin.. t/t5505-remote: set default branch to main 📓 15030f9556 2024-10-15 Taylor Blau The second batch

Is there a way to do this now? If not, maybe a "%N?" might be a nice addition?

Thanks, Bence

-- 
bence.ferdinandy.com
Next: Junio C Hamano
Message 1 of 7 in “log --format existence of notes?”
  1. Bence FerdinandyNov 15, 2024
  2. Junio C HamanoNov 16, 2024
  3. Bence FerdinandyNov 16, 2024
  4. ref-filter: add "notes" atomKousik Sanagavarapu, Nov 20, 2024
  5. Junio C HamanoNov 20, 2024
  6. Kousik SanagavarapuDec 1, 2024
  7. Simon RichterNov 21, 2024

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.