summaryrefslogtreecommitdiff
path: root/BaseTools/Scripts
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2019-08-01 15:59:41 -0700
committerMichael D Kinney <michael.d.kinney@intel.com>2019-08-07 22:11:50 -0700
commit1eeb5ff160278e58ef9cbaef70c4d6800bebdc55 (patch)
tree02690c4b9982964cc6b8a5a2e0cb6a5a111a3225 /BaseTools/Scripts
parent05579e51824a1ea393e52a3bda7d0c35cb060bc3 (diff)
BaseTools/PatchCheck: Add copy from/to keywords
https://bugzilla.tianocore.org/show_bug.cgi?id=2044 When files are very similar, git will copy an existing file to a new location and then apply differences. This is operation identified in the diff with 'copy from' and 'copy to' lines that need to be ignored. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'BaseTools/Scripts')
-rwxr-xr-xBaseTools/Scripts/PatchCheck.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Scripts/PatchCheck.py b/BaseTools/Scripts/PatchCheck.py
index 4f2ef81ae7..6b07241bfe 100755
--- a/BaseTools/Scripts/PatchCheck.py
+++ b/BaseTools/Scripts/PatchCheck.py
@@ -331,6 +331,8 @@ class GitDiffCheck:
'old mode ',
'new mode ',
'similarity index ',
+ 'copy from ',
+ 'copy to ',
'rename ',
)