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: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, 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 BB1971F8C6 for ; Thu, 15 Jul 2021 17:17:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231941AbhGORUo (ORCPT ); Thu, 15 Jul 2021 13:20:44 -0400 Received: from mail-ed1-f41.google.com ([209.85.208.41]:40654 "EHLO mail-ed1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229786AbhGORUo (ORCPT ); Thu, 15 Jul 2021 13:20:44 -0400 Received: by mail-ed1-f41.google.com with SMTP id t3so9178801edc.7 for ; Thu, 15 Jul 2021 10:17:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kA8gsDeayuJ+tKfVOve0h+rXdXTN6sUDk57Zg7Dj/9w=; b=b7WdedN8kIPm6RsuohTe83P+REHYeyWME2DZ+OXknsjaQ8XR3QdVLRKkBkRGWjzxYW d1DQWLTmVqd4Lvyf6xEXTDEMTskjB382IXrCPMYN3Wh015TJES45WS5xNj/7zElPoCax OqSf1WanteYX/9kWMp+Xl6UxyJ+Zr0W4uY9HkEBRHyxZgyYL1yCclg6nuTVzHCmOeAM7 +4pWrNKg+afRICAKE/8+r0sLoh8RlLXQcnd/PpqGp1FB53NaZ4lsV2YsypfFr9qbym+z lmy6qlS1vF2qvpnHK2/NcuhVERgHIOsT1KQn2zcWAhxwXJFT3vPGz0hn4wCw/d/Q9ECd JthA== X-Gm-Message-State: AOAM530QbIDOH7liZzjL7lh0DbPLzTnFjiwcc/ztGkwnYmAU1g8QrfIQ 4LcEJ/FtW8v6c6Lqw4MiPOUylLRJ4ayGC+DHjEM= X-Google-Smtp-Source: ABdhPJzEQdjlOlaAIxb48bL3yPTRs033PEESfuSYBA9yRZTI/uDSLRWqK8BTdfqM/nI/zuAkZ2JBVeh6yKNOv2jDNUE= X-Received: by 2002:a05:6402:152:: with SMTP id s18mr8518517edu.221.1626369468601; Thu, 15 Jul 2021 10:17:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Eric Sunshine Date: Thu, 15 Jul 2021 13:17:37 -0400 Message-ID: Subject: Re: [PATCH v4 0/3] worktree: teach add to accept --reason with --lock To: Stephen Manz via GitGitGadget Cc: Git List , Stephen Manz Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Wed, Jul 14, 2021 at 10:32 PM Stephen Manz via GitGitGadget wrote: > The default reason stored in the lock file, "added with --lock", is unlikely > to be what the user would have given in a separate git worktree lock > command. Allowing --reason to be specified along with --lock when adding a > working tree gives the user control over the reason for locking without > needing a second command. > > Changes since v3: > > * Updated test to define a shell variable, lock_reason, set to "why not". > Expand the variable to use with --reason and to echo to file, expected. > This avoids the spacing comment made by Eric Sunshine. Thanks, these changes look fine to me. I don't know whether or not Junio has merged this series down to his "next" branch yet locally, though. If he has, then he may not pick up your v4, and this minor cleanup change could instead be done as a standalone patch atop v3 (or could be dropped since v3 was probably "good enough"). In any case, this series is still Reviewed-by: me.