From: Junio C Hamano Date: Sat, 21 Feb 2026 06:02:21 GMT Subject: Re: [RFC PATCH] format-patch: better commit list for cover letter Message-ID: In-Reply-To: Junio C Hamano writes: >> Maybe the "--cover-letter" option can take an argument like >> "--cover-letter=". ... > > Just off the top of my head... > > Perhaps with > > [format] > commitListFormat ;# true > > we use > > [1/1] format-patch: better commit list for cover letter > > and with > > [format] > commitListFormat="%s (%an)" > > we use > > [1/1] format-patch: better commit list for cover letter (Mirko Faina) > > instead. IOW, the value of the configuration variable is used as > the format argument "log --format=...", and appended to the fixed > [n/m] that gives the numbers. > > Without format.commitListFormat defined, or when it is defined to > false, we'd use the traditional "shortlog" format. > > Hmm? And the corresponding command line option can look like --cover-letter=(shortlog | log:) e.g., --cover-letter=log:"%s (%an)" to override configured value per invocation basis.