Request for examples on git log --format:tformat
- From
- Daniel Lo <wilburlo@gmail.com>
- Date
- Sep 28, 2018, 18:29 UTC
- Message-ID
- <CAOeX3KXASgnyVcZuTAjyXLgnZpeA1FD3XXvSoRd11b9V9jpGFg@mail.gmail.com>
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