SetupGit.py adds BaseTools/Conf/diff.order as a diff orderfile, but that
file currently has CRLF line endings, which causes all pattern matches
to fail and the ordering remaining unaffected.
Add an exception to PatchCheck.py (to the existing .gitmodules clause),
so that we can merge the fix to the config file.
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Leif Lindholm <leif@nuviainc.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
# they are identified by their path.\r
#\r
self.force_crlf = False\r
- if self.filename == '.gitmodules':\r
+ if self.filename == '.gitmodules' or \\r
+ self.filename == 'BaseTools/Conf/diff.order':\r
#\r
- # .gitmodules is updated by git and uses tabs and LF line\r
- # endings. Do not enforce no tabs and do not enforce\r
- # CR/LF line endings.\r
+ # .gitmodules and diff orderfiles are used internally by git\r
+ # use tabs and LF line endings. Do not enforce no tabs and\r
+ # do not enforce CR/LF line endings.\r
#\r
self.force_crlf = False\r
self.force_notabs = False\r