Re: Considering add log.format and show.format configure option
- From
Jeff King <peff@peff.net>
- Date
- Aug 26, 2022, 07:58 UTC
- Message-ID
- <Ywh9LUOf9sNlVy4a@coredump.intra.peff.net>
- In-Reply-To
- <CAOrge3pTP5WU3Z1HRLz7xqExwt7_n33FUkh9KQP2m6VyuA9sJw@mail.gmail.com>
On Fri, Aug 26, 2022 at 03:12:34PM +0800, Zang wrote:
Show 14 quoted lines
> 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