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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux