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