public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* git log format documentation/manpage
@ 2025-10-24  8:06 David Moberg
  2025-10-25 13:42 ` D. Ben Knoble
  2025-10-25 17:00 ` René Scharfe
  0 siblings, 2 replies; 4+ messages in thread
From: David Moberg @ 2025-10-24  8:06 UTC (permalink / raw)
  To: git@vger•kernel.org

Hi I'm trying to replicate the "oneline" log format and add notes to it. What I can't figure out:

1. What is the format string that corresponds to pretty format "oneline"?
2. What is the placeholder for the title-line? By searching for "title-line" in `man git log` I couldn't find anything. Surely this is in here somewhere?       
   Searching for `full-commit-message` also left me empty-handed.
3. How can I display notes (%N from `git notes add`) as in-line information (stripping away newlines at the end)?

How do I figure out the placeholders?

Suggestion for manpage improvements:
1. the pretty formats (oneline, short, ...) should come with a (t)format string that it corresponds to. They will act as great examples.
2. Make sure the descriptions of the pretty formats ("<title-line>", "<full-commit-message>", ...) are searchable.

Kind Regards,
David, kaddkaka, Moberg

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-10-25 17:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-24  8:06 git log format documentation/manpage David Moberg
2025-10-25 13:42 ` D. Ben Knoble
2025-10-25 16:35   ` Junio C Hamano
2025-10-25 17:00 ` René Scharfe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox