Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.2 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F189C433F5 for ; Tue, 21 Sep 2021 17:34:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4FB9F61178 for ; Tue, 21 Sep 2021 17:34:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231475AbhIURf7 (ORCPT ); Tue, 21 Sep 2021 13:35:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231224AbhIURf6 (ORCPT ); Tue, 21 Sep 2021 13:35:58 -0400 Received: from mail-qk1-x749.google.com (mail-qk1-x749.google.com [IPv6:2607:f8b0:4864:20::749]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2B47C061574 for ; Tue, 21 Sep 2021 10:34:29 -0700 (PDT) Received: by mail-qk1-x749.google.com with SMTP id c27-20020a05620a165b00b003d3817c7c23so184525374qko.16 for ; Tue, 21 Sep 2021 10:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=Y9SsUy3bdjeQDVwnipVDt74dD99hjkZ3u2yWgK3GUsI=; b=iWa8VptJLLlFdgdfXvTAQ78CmQEKQPZpCA0hs+R3/GSQS17xDSaoVk/W9CjiCQ2q+I hBQQ0fPuDy3lyBGqbYTA4CUd9DE7nRPbAmC7XoulRUliP4vxyD2S+t2FSCjnqm14Mzbg 82CZCOopCB/dsLitfraCPDcsDSkjminEZnsc3keMpDugWdRrJTw9dNB+ppHQ0OdGiuku 0S2xuEmwRV/XjYakzpjCwUJqqKxwVlueR7x8Ivyh6FRtn4MRCdWvGaVxQ+tQZGrfsfGr MXdCd9FqeJjcxOCRnfZfeORXZ6jriL/Zuq8HM3ld774jbRJ4LD5LphyQr1GSTjW3v9yA Nwxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=Y9SsUy3bdjeQDVwnipVDt74dD99hjkZ3u2yWgK3GUsI=; b=nnQbkGVpLE9ojPyqilclGJV/zVldgolBt25Fq89G3fozRGmytrsEOBL/IdotswMWYk PQTqimJVubCT4WuwUOTmwjO0TIgiK9eQIJfWf6KdYQAs0MqVh71+0dp/23HE1TXqLPC5 qEhO7EM1CcPOkSvby3wWqa1ziptCFKAcHUe27DwpRzee1AFECm444DADdwUb+n5Csp70 W63mgnbwJNPlZGkhBqHL2h4IjGjz9F+0jrWn/bOSGTj4E4DaD85N7iR0pqg0iXgiBxfJ rpf89NnHSfY5kQ5XUAsnNN9mpfdLNIz5P3svYUQ3SbwxE/eOAHCkXll5l8PsgAYQa4iF beSw== X-Gm-Message-State: AOAM530H+fXh5cetIBU2/WRoloCSHqAPjO0iwqs9TcWg/8GCvWM+Korf FfbPC3qmVPtouQqzGpZm4yXwdgJGj8LVFg== X-Google-Smtp-Source: ABdhPJzeaATLfMcjmtUWKapGLJXyTmpz8270aWT9l4MhZnrRx05jECvKlgJ6kFr+veGBafc6TbLsHZCZXLW7uw== X-Received: from chooglen.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:26d9]) (user=chooglen job=sendgmr) by 2002:a0c:9d05:: with SMTP id m5mr31624703qvf.30.1632245669006; Tue, 21 Sep 2021 10:34:29 -0700 (PDT) Date: Tue, 21 Sep 2021 10:34:27 -0700 In-Reply-To: Message-Id: Mime-Version: 1.0 References: <20210913194816.51182-1-chooglen@google.com> <20210920223226.25877-1-chooglen@google.com> Subject: Re: [PATCH v2] MyFirstContribution: Document --range-diff option when writing v2 From: Glen Choo To: Eric Sunshine Cc: Git List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Eric Sunshine writes: >> +Make your changes with `git rebase -i`. Once you're ready with the next >> +iteration of your patch, the process is fairly similar to before. Generate your >> +patches again, but with some new flags: > > I wonder if "Make your changes with `git rebase -i`" is a bit too > terse for newcomers to understand. Perhaps a bit more verbose: > > Refine your patch series by using `git rebase -i` to adjust > commits based upon reviewer comments. Once the patch series is > ready for submission, generate your patches again, but with some > new flags: > I like your wording :) It seems "obvious" that one should incorporate reviewer comments, but your phrasing makes it that much clearer. >> +The `--range-diff master..psuh-v1` parameter tells `format-patch` to include a >> +range-diff between `psuh-v1` and `psuh` (see linkgit:git-range-diff[1]). This >> +helps tell reviewers about the differences between your v1 and v2 patches. > > This leaves dangling the question of where the range-diff is placed. Maybe say: > > ... tells `format-patch` to include a range-diff between ... in > the cover letter. > Sounds good. >> +The `-v2` parameter tells `format-patch` to output "v2" patches. For instance, >> +you may notice that your v2 patches, are all named like >> +`v2-000n-my-commit-subject.patch`. `-v2` will also format your patches by >> +prefixing them with "[PATCH V2]" instead of "[PATCH]", and your range-diff will >> +be prefaced with "Range-diff against v1". > > s/V2/v2/ Thanks! >> +Afer you run this command, `format-patch` will output the patches to the `psuh/` >> +directory, alongside the v1 patches. Using a single directory makes it easy to >> +refer to the old v1 patches while proofreading the v2 patches, but you will need >> +to be careful to send out only the v2 patches. We will use a pattern like >> +"psuh/v2-*.patch" ("psuh/*.patch" would match v1 and v2 patches). > > To avoid any sort of confusion, perhaps: > > ... "psuh/v2-*.patch" (not "psuh/*.patch" which would match v1 and > v2 patches) Agree that making this explicit is a good idea.