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=-4.0 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 D80411F5AE for ; Mon, 22 Jun 2020 21:32:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730484AbgFVVcm (ORCPT ); Mon, 22 Jun 2020 17:32:42 -0400 Received: from cloud.peff.net ([104.130.231.41]:39296 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbgFVVcm (ORCPT ); Mon, 22 Jun 2020 17:32:42 -0400 Received: (qmail 1810 invoked by uid 109); 22 Jun 2020 21:32:42 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Mon, 22 Jun 2020 21:32:42 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 8437 invoked by uid 111); 22 Jun 2020 21:32:42 -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, 22 Jun 2020 17:32:42 -0400 Authentication-Results: peff.net; auth=none Date: Mon, 22 Jun 2020 17:32:41 -0400 From: Jeff King To: Junio C Hamano Cc: Eric Sunshine , Git List , Johannes Schindelin Subject: Re: [PATCH 1/3] fast-export: allow dumping the refname mapping Message-ID: <20200622213241.GB1376217@coredump.intra.peff.net> References: <20200619132304.GA2540657@coredump.intra.peff.net> <20200619132546.GA2540774@coredump.intra.peff.net> <20200619160129.GA1843858@coredump.intra.peff.net> <20200619161816.GA9205@flurp.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Fri, Jun 19, 2020 at 12:20:38PM -0700, Junio C Hamano wrote: > >> The names were long enough that I thought it was more clear not > >> to repeat myself. [...] > > > > Indeed, it's a minor point and subjective. Certainly not worth a > > re-roll or even worrying about it. > > It probably is subjective but fwiw I too find yours easier to > follow. I ended up doing it this way, since I decided to quote the pathnames (and thus they needed their own fprintf, at which point there was really nothing left for the two to share). > > Hmph, that shouldn't have failed. Did you quote the $(wc -l refs) > > invocation? Quoting it would cause it to fail. > > > + git show-ref >refs && > > + nrefs=$(wc -l > Yup, I've seen that workaround for macs too many times and it should > work well. I switched to this style in the re-roll (and ditto for the path output, which actually turned up a bug). -Peff