git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Considering add log.format and show.format configure option

From
ZZang <zealot0630@gmail.com>
Date
Aug 26, 2022, 07:12 UTC
Message-ID
<CAOrge3pTP5WU3Z1HRLz7xqExwt7_n33FUkh9KQP2m6VyuA9sJw@mail.gmail.com>
Hi forks,
People including me are asking feature to use different format for log and show:

https://stackoverflow.com/questions/20579889/different-pretty-formats-for-git-log-and-git-show https://stackoverflow.com/questions/37898232/make-different-pretty-settings-for-git-log-and-git-show

Can we consider add such option to git-config
[format]
    mylogformat = <...>
    myshowformat = <...>
[log]
    format = mylogformat
[show]
    format = myshowformat
Which should work same as

git log --format=mylogformat git show --format=myshowformat

Next: Jeff King
Message 1 of 3 in “Considering add log.format and show.format configure option”
  1. ZangAug 26, 2022
  2. Jeff KingAug 26, 2022
  3. Junio C HamanoAug 26, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.