From 1eeb5ff160278e58ef9cbaef70c4d6800bebdc55 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Thu, 1 Aug 2019 15:59:41 -0700 Subject: [PATCH] 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 Cc: Liming Gao Cc: Jordan Justen Signed-off-by: Michael D Kinney Reviewed-by: Bob Feng Reviewed-by: Liming Gao Reviewed-by: Jordan Justen --- BaseTools/Scripts/PatchCheck.py | 2 ++ 1 file changed, 2 insertions(+) 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 ', ) -- 2.39.2