From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sA8IHxt0UGMkdAEAbAwnHQ (envelope-from ) for ; Thu, 20 Oct 2022 00:03:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iKbvHRt0UGMTcAAAG6o9tA (envelope-from ) for ; Thu, 20 Oct 2022 00:03:07 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EB7A4C2EA for ; Thu, 20 Oct 2022 00:03:06 +0200 (CEST) Received: from localhost ([::1]:45158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olH9M-0005Gv-K3 for larch@yhetil.org; Wed, 19 Oct 2022 18:02:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olH8U-0005EI-DU for guix-patches@gnu.org; Wed, 19 Oct 2022 18:02:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33052) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olH8U-0004AG-44 for guix-patches@gnu.org; Wed, 19 Oct 2022 18:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olH8T-0006cx-UH for guix-patches@gnu.org; Wed, 19 Oct 2022 18:02:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58648] [PATCH 1/1] doc: contributing: Expand "Sending a Patch Series". References: <20221019215709.24201-1-paren@disroot.org> In-Reply-To: <20221019215709.24201-1-paren@disroot.org> Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 19 Oct 2022 22:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58648 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58648@debbugs.gnu.org Cc: "\(" Received: via spool by 58648-submit@debbugs.gnu.org id=B58648.166621689125434 (code B ref 58648); Wed, 19 Oct 2022 22:02:01 +0000 Received: (at 58648) by debbugs.gnu.org; 19 Oct 2022 22:01:31 +0000 Received: from localhost ([127.0.0.1]:60363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olH7y-0006cA-UM for submit@debbugs.gnu.org; Wed, 19 Oct 2022 18:01:31 -0400 Received: from knopi.disroot.org ([178.21.23.139]:43216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olH7w-0006bw-AV for 58648@debbugs.gnu.org; Wed, 19 Oct 2022 18:01:29 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2345A4E8A9; Thu, 20 Oct 2022 00:01:27 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id Vk-1iqy7RRgc; Thu, 20 Oct 2022 00:01:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1666216851; bh=FYnxkTHrqF0kM05U3XecCfaoGDjNzs3EyPZ6KGJM6XY=; h=From:To:Cc:Subject:Date; b=Q23oEbRxtomwtAliMF7KydSn02vug3kmlAJ9jUoKAg3ghcAx50RppCPAPaOHWfEuu uqJ408HdgXEvvhzOKhqtlOqvLfq2ciEg/ekceXN+k7OMO1xzwx0TDCuvQF17gUijeO OFEbJ3OVJD2wM87N4h8K0KXD2bB16xVO/k3a1Q2gqjIFzDFCEC9eReSl8XZKleBh5K TYzdYBZSycrb0NBd4bt8PO3U6VgMCH3yxJCMKI+eaYG3BkuIt7mqk9DveewWHRaEn8 3bBSwlQ2B0XqLR74y1QenuxEwD8/EdtPgjPmtBzkW+GUEtXk4NYjqr+9FwGn2MIQDT gDzyDM2bZrFyQ== Date: Wed, 19 Oct 2022 23:00:48 +0100 Message-Id: <20221019220048.24290-1-paren@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666216987; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2xKaDGVDe5EAf7GOeTZ0HLs6qolYz5NOghvFHXq8eSQ=; b=hXdai6RLRIvAwl96YdfQKLH37LYXCX6wIdvjLsQE6lF4bwf950ztOFGmG/7o6Rzs9rjSKM agM5hN/rNzZgEfDMTJCLGAhpd7c71RiAPuA37zI7L6/7eey6P1rqg/PimMRlI02xHiJ5U1 O97iHODWdaldnLvlrxLkut7JFKbGHf4itmr16wwRNXKSkf+vQ1apODloraX3dv0M4KLrW8 c9wl1r1qXgmRGOPbUpneTl5DhB+Q4PAyGr0mwtW19ndXzbmtEeMpAjCkxFw8nA78GqtPML yCZCFEV1s8Oy4/tWxjWH4tUAmGta8bY95pp/N/nHet8y8IxtPijPQauG5fAmqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666216987; a=rsa-sha256; cv=none; b=VbHX8dudGlhCrQXPYX+HllV5DkT6YnBXx/1GHXr63e0xspq5BEBMvi+C5MErUZgTpfJSWd vmmfpqOuUK1bbia3BXtW1sAx72HZZxntLdABi3n2Q4fvRWAT1W7NkOGlsnrU15+6w3OsJy jCibgr4obVkUZPrLDNMCg8CCYpCu3p5+4AGYrVfzBrzlcsq+t9+uanTIlJm2RsF2l9eVX+ SVLvDLoVeAuXqfdOAidmLObbD8ovtNzysXmjBKBAtK0/A+9PoTMD3dOXBOsdHhWhosZVX5 zOS5j7Tpw+SwO/2Oz+2OjZh6O8r1zYV8HGay95LWAxrRRHTe3iwYHZL5xQew1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=Q23oEbRx; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=Q23oEbRx; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EB7A4C2EA X-Spam-Score: -0.92 X-Migadu-Scanner: scn1.migadu.com X-TUID: uhh5ikfkBK99 * doc/contributing.texi: Expand on sending patches and using git send-email. --- doc/contributing.texi | 83 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 71 insertions(+), 12 deletions(-) diff --git a/doc/contributing.texi b/doc/contributing.texi index 4b1eed1cb1..c7a2dd09e7 100644 --- a/doc/contributing.texi +++ b/doc/contributing.texi @@ -1409,19 +1409,78 @@ git config --local sendemail.thread no @anchor{Sending a Patch Series} @cindex patch series @cindex @code{git send-email} +The @code{git send-email} and @code{git format-patch} commands allow you +to send your commits in email form to a mailing list, to be reviewed and +applied, and they are the recommended way to submit contributions to Guix. +When you send the first revision of a patch series, it's best to use +@code{git format-patch --cover-letter}. -When sending a patch series (e.g., using @code{git send-email}), please -first send one message to @email{guix-patches@@gnu.org}, and then send -subsequent patches to @email{@var{NNN}@@debbugs.gnu.org} to make sure -they are kept together. See -@uref{https://debbugs.gnu.org/Advanced.html, the Debbugs documentation} -for more information. You can install @command{git send-email} with -@command{guix install git:send-email}. -@c Debbugs bug: https://debbugs.gnu.org/db/15/15361.html - -To maximize the chances that you patch series is reviewed, the preferred -submission way is to use the @code{etc/teams.scm} script to notify the -appropriate team members (@pxref{Teams}). +@example +$ git format-patch -$N -o outgoing --cover-letter +@end example + +@quotation Note +The @code{git send-email} command is provided by the @code{send-email} +output of the @code{git} package, i.e. @code{git:send-email}. +@end quotation + +This command makes patches out of the last @var{N} commits, and writes +them to @code{.patch} files in @code{outgoing/}, along with an automatically +generated cover letter. We can then send the cover letter to the Guix +mailing list. + +@example +$ git send-email outgoing/0000-cover-letter.patch -a --to guix-patches@@gnu.org +@end example + +Note the @code{-a} flag; this pops up your editor so that you can fill in +the patchset subject line and blurb with whatever explanatory text you +feel is appropriate. Note the automatically generated shortlog and +diffstat below the blurb, which help to give potential reviewers an +overview of the patchset. + +At some point, the Debbugs mailer will reply to your cover letter mail +with an acknowledgement, which contains the issue number of your patchset. +You should now send the rest of the patches to this issue thread, using +the @code{@var{ISSUE_NUMBER}@@debbugs.gnu.org} address. + +@example +$ rm outgoing/0000-cover-letter.patch # Don't resend the cover letter! +$ git send-email outgoing/*.patch --to ISSUE_NUMBER@@debbugs.gnu.org +$ rm -rf outgoing # We're done with the patch files now. +@end example + +After a moment, your patches should appear at +@url{https://issues.guix.gnu.org/@var{ISSUE_NUMBER}} and +@url{https://debbugs.gnu.org/@var{ISSUE_NUMBER}}. + +@quotation Note +You should @strong{never} send all your patches to +@code{guix-patches@@gnu.org} at once, as this will create an issue for +each individual patch you send! If you do accidentally do this, though, +it's not a massive problem, as Debbugs supports merging issues. +@end quotation + +The use of the @code{etc/teams.scm} script to notify the appropriate team +members (@pxref{Teams}) is recommended when submitting patches, to maximize +the chances of your patch series being reviewed quickly. + +To incorporate a reviewer's suggestions, use @code{git rebase -i} to amend +the commits, as demonstrated @url{https://git-rebase.io, here}, and send a +second patch series with a @code{-v2} tag. + +@example +$ git send-email -$N -v2 --to ISSUE_NUMBER@@debbugs.gnu.org +@end example + +Note that since we already have an issue on Debbugs for our patchset, +there's no need for the intermediate @code{git format-patch} step. Of +course, to send a third patchset, you amy use @code{-v3}, to send a fourth, +@code{-v4}, and so on. + +If need be, you may use @code{--cover-letter -a} to send another cover letter, +e.g. for explaining what's changed since the last revision, and these changes +are necessary. @unnumberedsubsec Teams @anchor{Teams} -- 2.38.0