Re: [PATCH 2/8] shortlog: refactor committer/author grouping
- From
- Martin Ågren <martin.agren@gmail.com>
- Date
- Sep 26, 2020, 12:31 UTC
- Message-ID
- <CAN0heSoS837ZCLt8WLRBrthXgOErwz-vXW8Af9v2ZdCcCpWRiw@mail.gmail.com>
- In-Reply-To
- <20200925070211.GB62741@coredump.intra.peff.net>
Hi Peff,
Some random thoughts follow on this patch and a few others.
On Fri, 25 Sep 2020 at 09:04, Jeff King <peff@peff.net> wrote:
Show 7 quoted lines
> > In preparation for adding more grouping types, let's > refactor the committer/author grouping code. In particular: > > - the master option is now "--group", to make it clear > that the various group types are mutually exclusive. The > "--committer" option is an alias for "--group=committer".
I think this is more than a refactoring of the code. The user interface is also refactored (if that's even the right word). From the subject and the first sentence above, I did not expect this first "-" item, nor that the patch would touch Documentation/.
> + enum {
> + SHORTLOG_GROUP_AUTHOR = 0,
> + SHORTLOG_GROUP_COMMITTER
> + } group;You could reduce the patch noise by adding a trailing comma, see cc0c42975a ("CodingGuidelines: spell out post-C89 rules", 2019-07-16). (I do realize that you later redefine all values anyway.)
Martin