From: David Moberg <David.Moberg@mediatek.com>
To: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: git log format documentation/manpage
Date: Fri, 24 Oct 2025 08:06:04 +0000 [thread overview]
Message-ID: <KL1PR03MB5748DE5406618053D0A6CE0AEBF1A@KL1PR03MB5748.apcprd03.prod.outlook.com> (raw)
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
next reply other threads:[~2025-10-24 8:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-24 8:06 David Moberg [this message]
2025-10-25 13:42 ` git log format documentation/manpage D. Ben Knoble
2025-10-25 16:35 ` Junio C Hamano
2025-10-25 17:00 ` René Scharfe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=KL1PR03MB5748DE5406618053D0A6CE0AEBF1A@KL1PR03MB5748.apcprd03.prod.outlook.com \
--to=david.moberg@mediatek.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).