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-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 111831F403 for ; Tue, 11 Oct 2022 01:00:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229688AbiJKBAU (ORCPT ); Mon, 10 Oct 2022 21:00:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbiJKBAQ (ORCPT ); Mon, 10 Oct 2022 21:00:16 -0400 Received: from cloud.peff.net (cloud.peff.net [104.130.231.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA68D50FAF for ; Mon, 10 Oct 2022 18:00:12 -0700 (PDT) Received: (qmail 29880 invoked by uid 109); 11 Oct 2022 01:00:12 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Tue, 11 Oct 2022 01:00:12 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 15881 invoked by uid 111); 11 Oct 2022 01:00:12 -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; Mon, 10 Oct 2022 21:00:12 -0400 Authentication-Results: peff.net; auth=none Date: Mon, 10 Oct 2022 21:00:11 -0400 From: Jeff King To: Taylor Blau Cc: Junio C Hamano , Jacob Stopak , git@vger.kernel.org, martin.agren@gmail.com Subject: Re: [RFC PATCH v2] shortlog: add group-by options for year and month Message-ID: References: <20220922061824.16988-1-jacob@initialcommit.io> <20220922232536.40807-1-jacob@initialcommit.io> 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, Oct 07, 2022 at 06:24:36PM -0400, Taylor Blau wrote: > > So here you're allowing multiple pretty options. But really, once we > > allow the user an arbitrary format, is there any reason for them to do: > > > > git shortlog --group=%an --group=%ad > > > > versus just: > > > > git shortlog --group='%an %ad' > > > > ? > > I think that if you want to unify `--group=author` into the new format > group implementation, you would have to allow multiple `--group` > options, but each such option would generate its own shortlog identity > instead of getting concatenated together. Exactly, and I think we have to do that anyway to match the existing multiple-option behavior. -Peff