Thread (2 messages) 2 messages, 2 authors, 2022-08-26

Re: Considering add log.format and show.format configure option

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=myshowformat
I 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help