From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 7B6D81F4B4 for ; Sun, 27 Sep 2020 08:03:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730446AbgI0IDq (ORCPT ); Sun, 27 Sep 2020 04:03:46 -0400 Received: from cloud.peff.net ([104.130.231.41]:42308 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730438AbgI0IDq (ORCPT ); Sun, 27 Sep 2020 04:03:46 -0400 Received: (qmail 28568 invoked by uid 109); 27 Sep 2020 08:03:46 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Sun, 27 Sep 2020 08:03:46 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 3781 invoked by uid 111); 27 Sep 2020 08:03:48 -0000 Received: from coredump.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Sun, 27 Sep 2020 04:03:48 -0400 Authentication-Results: peff.net; auth=none Date: Sun, 27 Sep 2020 04:03:45 -0400 From: Jeff King To: Eric Sunshine Cc: Git List Subject: Re: [PATCH 2/8] shortlog: refactor committer/author grouping Message-ID: <20200927080345.GB1286220@coredump.intra.peff.net> References: <20200925070120.GA3669667@coredump.intra.peff.net> <20200925070211.GB62741@coredump.intra.peff.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Fri, Sep 25, 2020 at 04:05:04PM -0400, Eric Sunshine wrote: > > +--group=:: > > + By default, `shortlog` collects and collates author identities; > > + using `--group` will collect other fields. > > + `` is one of: > > ++ > > + - `author`, commits are grouped by author (this is the default) > > + - `committer`, commits are grouped by committer (the same as `-c`) > > I had trouble interpreting "(this is the default)". It made me think > that is optional: > > --group[=] > > but that isn't the case at all. Instead, it means that if --group > isn't specified, then grouping is done by `author` by default. Right. > It also > repeats what the general description of --group already says with > regard to the default, thus it is redundant to say it again when > describing the `author` type. Therefore, perhaps drop "(this is the > default)" altogether? OK. I was worried somebody wouldn't quite pick up on the default. We could spell it out as: - `author`, commits are grouped by author (this is the default if no --group is given) but that's pretty lengthy. We could also reword the whole thing as: --group=:: Collect and collate values of type ``; if no `--group` option is given, the default is `author`: - `author`, commits are grouped by author - `committer`, commits are grouped by committer (the same as `-c`) I'm not sure if that's clearer or not. The first sentence seems a bit opaque, but I'm not sure how to improve it. For now (and what plan to send out in v2), I'll take your suggestion to just drop the phrase. -Peff