git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Considering add log.format and show.format configure option
@ 2022-08-26  7:12 Zang
  2022-08-26  7:58 ` Jeff King
  2022-08-26 16:42 ` Junio C Hamano
  0 siblings, 2 replies; 3+ messages in thread
From: Zang @ 2022-08-26  7:12 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-26 16:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-26  7:12 Considering add log.format and show.format configure option Zang
2022-08-26  7:58 ` Jeff King
2022-08-26 16:42 ` Junio C Hamano

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 NNTP newsgroup(s).