Request for examples on git log --format:tformat
- Date: Fri, 28 Sep 2018 11:29:32 -0700
- From: Daniel Lo <wilburlo@xxxxxxxxx>
- Subject: Request for examples on git log --format:tformat
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:
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.
Percy Shelley's poem "Ozymandias" is also a good argument for refactoring code.