log --format existence of notes?

From: Bence Ferdinandy <hidden>
Date: 2024-11-15 22:01:07

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help