diff options
author | Rebecca Cran <rebecca@bsdio.com> | 2023-04-06 17:58:54 -0600 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-04-14 14:28:43 +0000 |
commit | 797f526ae2a83811b0ccbde0138c65a9f137eba5 (patch) | |
tree | 599a83246b698e5f5fe19642bf3a1f911069f01d /BaseTools/Scripts | |
parent | c9fb11f92f52e06bcb1279b467a3b2667757be44 (diff) | |
download | edk2-797f526ae2a83811b0ccbde0138c65a9f137eba5.zip edk2-797f526ae2a83811b0ccbde0138c65a9f137eba5.tar.gz edk2-797f526ae2a83811b0ccbde0138c65a9f137eba5.tar.bz2 |
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>
Diffstat (limited to 'BaseTools/Scripts')
-rw-r--r-- | BaseTools/Scripts/SetupGit.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Scripts/SetupGit.py b/BaseTools/Scripts/SetupGit.py index 9181419..5f93124 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},
|