Re: Considering add log.format and show.format configure option
From: Jeff King <hidden>
Date: 2022-08-26 07:58:42
From: Jeff King <hidden>
Date: 2022-08-26 07:58:42
On Fri, Aug 26, 2022 at 03:12:34PM +0800, Zang wrote:
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=myshowformatI don't think there is any reason not to add something like that. As you note, we already allow overriding the default for all of the log-family commands. So doing it for individual ones is not a stretch. (I'm not sure if you know, the first half of your suggestion is already available as pretty.*, so this would just be adding log.format, etc, to override format.pretty. Possibly your "format' is just a typo of "pretty" there). -Peff