summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2023-04-06 17:58:54 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-04-14 14:28:43 +0000
commit797f526ae2a83811b0ccbde0138c65a9f137eba5 (patch)
tree599a83246b698e5f5fe19642bf3a1f911069f01d
parentc9fb11f92f52e06bcb1279b467a3b2667757be44 (diff)
downloadedk2-797f526ae2a83811b0ccbde0138c65a9f137eba5.tar.gz
edk2-797f526ae2a83811b0ccbde0138c65a9f137eba5.tar.bz2
edk2-797f526ae2a83811b0ccbde0138c65a9f137eba5.zip
BaseTools: Update SetupGit.py to add new 'fp' alias for patch formatting
To help people format patches with the correct options, add an alias named 'fp' to SetupGit.py that runs format-patch with '-M --stat=1000 --stat-graph-width=20'. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
-rw-r--r--BaseTools/Scripts/SetupGit.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Scripts/SetupGit.py b/BaseTools/Scripts/SetupGit.py
index 91814199bf..5f93124967 100644
--- a/BaseTools/Scripts/SetupGit.py
+++ b/BaseTools/Scripts/SetupGit.py
@@ -57,6 +57,8 @@ MIN_GIT_VERSION = (1, 9, 0)
# Set of options to be set identically for all repositories
OPTIONS = [
+ {'section': 'alias', 'option': 'fp',
+ 'value': 'format-patch -M --stat=1000 --stat-graph-width=20'},
{'section': 'am', 'option': 'keepcr', 'value': True},
{'section': 'am', 'option': 'signoff', 'value': True},
{'section': 'cherry-pick', 'option': 'signoff', 'value': True},