From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/misc-files/patches/
Date: Fri, 18 Jun 2021 06:13:47 +0000 (UTC) [thread overview]
Message-ID: <1623996756.39680e44ae7267f09465cef26f156195e55e6483.ulm@gentoo> (raw)
commit: 39680e44ae7267f09465cef26f156195e55e6483
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 10 00:15:09 2021 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Jun 18 06:12:36 2021 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=39680e44
ebuild-writing/misc-files/patches: discourage adding comments within patch
We shouldn't add comments (#) within patch changes to source code
(etc) because it's unnecessary noise. Comments *at the top* of the
patch are, of course, welcoome.
Closes: https://github.com/gentoo/devmanual/pull/217
Signed-off-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
ebuild-writing/misc-files/patches/text.xml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/ebuild-writing/misc-files/patches/text.xml b/ebuild-writing/misc-files/patches/text.xml
index 8d54dfd..05052e6 100644
--- a/ebuild-writing/misc-files/patches/text.xml
+++ b/ebuild-writing/misc-files/patches/text.xml
@@ -293,6 +293,14 @@ files automatically. Alternatively, you can specify the <c>-E</c> option with
<c>eapply</c> if you want to remove an empty file.
</p>
+<p>
+Removed lines should not appear in the patch because they are commented <d/>
+just remove them entirely. Patches show removed lines by prefixing them with
+a <c>-</c>, so no information is lost by simply deleting lines rather than
+commenting them out (which adds noise). This makes the patch shorter and
+more readable.
+</p>
+
<p>
The following function (for your interactive shell, not for the ebuild) will
help deleting these things:
next reply other threads:[~2021-06-18 6:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-18 6:13 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-07 17:22 [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/misc-files/patches/ Ulrich Müller
2022-04-06 18:41 Ulrich Müller
2021-06-18 6:13 Ulrich Müller
2021-04-07 17:35 Ulrich Müller
2021-04-07 17:35 Ulrich Müller
2021-04-07 17:35 Ulrich Müller
2021-02-22 16:51 Ulrich Müller
2021-02-20 8:00 Ulrich Müller
2018-06-22 18:40 Ulrich Müller
2016-06-16 1:19 Göktürk Yüksek
2015-08-21 6:36 Justin Lecher
2014-10-18 17:35 Markos Chandras
2014-07-24 18:06 ` Markos Chandras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1623996756.39680e44ae7267f09465cef26f156195e55e6483.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox