Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 959B4C25B08 for ; Wed, 17 Aug 2022 18:47:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 22AEC849A3; Wed, 17 Aug 2022 20:47:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="e+ilPCaT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ACFB7849A3; Wed, 17 Aug 2022 20:47:20 +0200 (CEST) Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A391084962 for ; Wed, 17 Aug 2022 20:47:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x32a.google.com with SMTP id y10-20020a9d634a000000b006167f7ce0c5so9960978otk.0 for ; Wed, 17 Aug 2022 11:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=WSLtdqiyUWXqHwLsb9nVgZLN0W/rvpDY/Oe6ztxHoxc=; b=e+ilPCaTdyIh9JbHUKCw2aXoyAaw7NwfK6TV84Elfeamic0C1T+HXxIt+jmEeSZ6/B FyE0Bz9hgP7TS84nTQWwq3YzFd5uigbCur9eHJKvLBEm2UJ8WIHHmfCCZiDWayOnWhlu /NBWP7lfYIJBIjKfRq6G513d4W6dT9E18b8kI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=WSLtdqiyUWXqHwLsb9nVgZLN0W/rvpDY/Oe6ztxHoxc=; b=NYYlsqojhVE6XNYdAcs+RiwsJys81aPrxGPv8yG+rONWCJjXvwaQbnwXmiMvrTdGVY 2xagKjlC5w3cm4FAn6m14LoZrRMisOi+Z1gDVAnhKoErzLr88sVvt1KCFCQSO6d+290X LpItIkGHwCNpvKm1tH/1aKoC0n/Ec1Vao44J6K+doSsDHMi+18zQtb7NzH4uXKMI6rxC ouIDnaRQWzt/WGpXy1mi/YTevETHYzGxmZKRZ9YCzj6/NplyM82GEmDBR4NS0jqTrnc5 r4GkxjR+++OOh1doDx2qp321tm3gGOMrzTLAov11ptGriRFn10liAkeeRVLdHd4vdqqr qjwQ== X-Gm-Message-State: ACgBeo2gWofl/a/n9O+wshfgurEt6b6TXwHe0rLpUXT0beWJpHreZe/G ew3a+UADf3x3pdlg5tiJctGuaIet1FrL6w== X-Google-Smtp-Source: AA6agR4o2GN7t2I5V3gvHSYxqsA5QISeZUJXUhq3Xi5ZDKtqOWgiJlHsexPYfIurjw0AJu6YbCFK9A== X-Received: by 2002:a05:6830:1cc2:b0:636:85b5:bb62 with SMTP id p2-20020a0568301cc200b0063685b5bb62mr9754085otg.115.1660762034755; Wed, 17 Aug 2022 11:47:14 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id g4-20020a9d6b04000000b00616dfd2c859sm3506733otp.59.2022.08.17.11.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 11:47:14 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ralph Siemsen , Simon Glass Subject: [PATCH 2/2] patman: Tidy up unnecessary blank lines and numbers Date: Wed, 17 Aug 2022 12:47:07 -0600 Message-Id: <20220817184707.79288-2-sjg@chromium.org> X-Mailer: git-send-email 2.37.1.595.g718a3a8f04-goog In-Reply-To: <20220817184707.79288-1-sjg@chromium.org> References: <20220817184707.79288-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Quite a few blank lines are not needed here. Drop these and use the # mechanism to number paragraphs. Signed-off-by: Simon Glass --- tools/patman/patman.rst | 45 ++++++++++++++--------------------------- 1 file changed, 15 insertions(+), 30 deletions(-) diff --git a/tools/patman/patman.rst b/tools/patman/patman.rst index f2e6d7636fd..8c5c9cc2ccc 100644 --- a/tools/patman/patman.rst +++ b/tools/patman/patman.rst @@ -11,21 +11,15 @@ Patman patch manager This tool is a Python script which: - Creates patch directly from your branch - - Cleans them up by removing unwanted tags - - Inserts a cover letter with change lists - - Runs the patches through checkpatch.pl and its own checks - - Optionally emails them out to selected people It also has some Patchwork features: - shows review tags from Patchwork so you can update your local patches - - pulls these down into a new branch on request - - lists comments received on a series It is intended to automate patch creation and make it a less @@ -53,15 +47,12 @@ This tool requires a certain way of working: - Maintain a number of branches, one for each patch series you are working on - - Add tags into the commits within each branch to indicate where the series should be sent, cover letter, version, etc. Most of these are normally in the top commit so it is easy to change them with 'git commit --amend' - - Each branch tracks the upstream branch, so that this script can automatically determine the number of commits in it (optional) - - Check out a branch, and run this script to create and send out your patches. Weeks later, change the patches and repeat, knowing that you will get a consistent result each time. @@ -623,41 +614,35 @@ and it will create and send the version 2 series. General points -------------- -1. When you change back to the us-cmd branch days or weeks later all your +#. When you change back to the us-cmd branch days or weeks later all your information is still there, safely stored in the commits. You don't need to remember what version you are up to, who you sent the last lot of patches to, or anything about the change logs. - -2. If you put tags in the subject, patman will Cc the maintainers +#. If you put tags in the subject, patman will Cc the maintainers automatically in many cases. - -3. If you want to keep the commits from each series you sent so that you can +#. If you want to keep the commits from each series you sent so that you can compare change and see what you did, you can either create a new branch for each version, or just tag the branch before you start changing it: -.. code-block:: bash + .. code-block:: bash git tag sent/us-cmd-rfc # ...later... git tag sent/us-cmd-v2 -4. If you want to modify the patches a little before sending, you can do +#. If you want to modify the patches a little before sending, you can do this in your editor, but be careful! - -5. If you want to run git send-email yourself, use the -n flag which will +#. If you want to run git send-email yourself, use the -n flag which will print out the command line patman would have used. - -6. It is a good idea to add the change log info as you change the commit, +#. It is a good idea to add the change log info as you change the commit, not later when you can't remember which patch you changed. You can always go back and change or remove logs from commits. - -7. Some mailing lists have size limits and when we add binary contents to +#. Some mailing lists have size limits and when we add binary contents to our patches it's easy to exceed the size limits. Use "--no-binary" to generate patches without any binary contents. You are supposed to include a link to a git repository in your "Commit-notes", "Series-notes" or "Cover-letter" for maintainers to fetch the original commit. - -8. Patches will have no changelog entries for revisions where they did not +#. Patches will have no changelog entries for revisions where they did not change. For clarity, if there are no changes for this patch in the most recent revision of the series, a note will be added. For example, a patch with the following tags in the commit:: @@ -669,15 +654,15 @@ General points Series-changes: 4 - Another change -would have a changelog of::: + would have a changelog of::: - (no changes since v4) + (no changes since v4) - Changes in v4: - - Another change + Changes in v4: + - Another change - Changes in v2: - - Some change + Changes in v2: + - Some change Other thoughts -- 2.37.1.595.g718a3a8f04-goog