From: Daniel Lo <wilburlo@gmail.com>
To: git@vger.kernel.org
Subject: Request for examples on git log --format:tformat
Date: Fri, 28 Sep 2018 11:29:32 -0700 [thread overview]
Message-ID: <CAOeX3KXASgnyVcZuTAjyXLgnZpeA1FD3XXvSoRd11b9V9jpGFg@mail.gmail.com> (raw)
Greetings,
I was reviewing the tformat parameters on:
https://git-scm.com/docs/git-log (middle of the page).
Specifically: %<|(<N>): make the next placeholder take at least until
Nth columns, padding spaces on the right if necessary
I found the instructions regard space formatting to be very confusing.
An example would be helpful to illustrate what the proper space
formatting syntax is:
Ex:
git log --format="tformat:%h %<(15)%an %s"
0123456 Author Name Commit message - author name is formatted to be
padded with space to occupy at least 15 characters
All of the special symbols %<|(<>) made me confused to what was
required and what was describing the syntax.
Thank you!
-daniel
--
Percy Shelley's poem "Ozymandias" is also a good argument for refactoring code.
http://en.wikipedia.org/wiki/Ozymandias
next reply other threads:[~2018-09-28 18:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-28 18:29 Daniel Lo [this message]
2018-09-29 7:56 ` Request for examples on git log --format:tformat Jeff King
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=CAOeX3KXASgnyVcZuTAjyXLgnZpeA1FD3XXvSoRd11b9V9jpGFg@mail.gmail.com \
--to=wilburlo@gmail.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).