From: "Rebecca Cran" <rebecca@bsdio.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: RFC: Adding an alias to format patches with --stat= and --stat-graph-width=
Date: Wed, 5 Apr 2023 14:54:20 -0600 [thread overview]
Message-ID: <1d84af79-cd13-3d6a-1406-01f5206bb928@bsdio.com> (raw)
I've noticed several patches recently which has ellipses at the start of
the diffstat filenames.
When I started contributing to edk2 I remember being asked to always use
--stat=1000 --stat-graph-width=20 to avoid that problem: it's mentioned
in
https://github.com/tianocore/tianocore.github.io/wiki/Laszlo%27s-unkempt-git-guide-for-edk2-contributors-and-maintainers.
I was wondering if we might want to introduce an alias via SetupGit.py
to add those parameters automatically?
For example:
diff --git a/BaseTools/Scripts/SetupGit.py b/BaseTools/Scripts/SetupGit.py
index 91814199bf..901d2025ab 100644
--- a/BaseTools/Scripts/SetupGit.py
+++ b/BaseTools/Scripts/SetupGit.py
@@ -82,6 +82,7 @@ OPTIONS = [
{'section': 'sendemail', 'option': 'chainreplyto', 'value': False},
{'section': 'sendemail', 'option': 'thread', 'value': True},
{'section': 'sendemail', 'option': 'transferEncoding', 'value':
'8bit'},
+ {'section': 'alias', 'option': 'fp', 'value': 'format-patch
-M --stat=1000 --stat-graph-width=20'},^M
]
--
Rebecca Cran
next reply other threads:[~2023-04-05 20:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-05 20:54 Rebecca Cran [this message]
2023-04-06 0:45 ` 回复: [edk2-devel] RFC: Adding an alias to format patches with --stat= and --stat-graph-width= gaoliming
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-list 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=1d84af79-cd13-3d6a-1406-01f5206bb928@bsdio.com \
--to=devel@edk2.groups.io \
/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