[edk2-devel] RFC: Adding an alias to format patches with --stat= and --stat-graph-width=
Rebecca Cran
rebecca at bsdio.com
Wed Apr 5 20:54:20 UTC 2023
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
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#102568): https://edk2.groups.io/g/devel/message/102568
Mute This Topic: https://groups.io/mt/98091795/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list