]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: convert diff.order to LF-only
authorLeif Lindholm <leif@nuviainc.com>
Wed, 22 Apr 2020 15:08:01 +0000 (16:08 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 3 Jul 2020 11:20:01 +0000 (11:20 +0000)
SetupGit.py sets the git config option diff.orderFile to
{edk2 directory}/BaseTools/Conf/diff.order, to override the default order
in which files are shown in a diff/patch/whatever. This is in imitation
of what is done manually in Laszlo's Unkempt Guide.

However, the version currently in the tree is in CRLF format, which makes
git interpret e.g. *.c as matching on *.c<CR>, finding no matches and
failing to apply the desired reordering. Note: this is true regardless of
whether running on Linux or Windows.

Convert the file to LF-only to make it work as expected.

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: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Conf/diff.order

index 4361817012c9ef945040de2ac48832d51028f37d..f1534f6c187c37286dd82c1723438652a0837daf 100644 (file)
@@ -1,13 +1,13 @@
-#\r
-# Copyright (c) 2019, Linaro Ltd. All rights reserved.\r
-#\r
-# SPDX-License-Identifier: BSD-2-Clause-Patent\r
-#\r
-*.dec\r
-*.dsc.inc\r
-*.dsc\r
-*.fdf\r
-*.inf\r
-*.h\r
-*.vfr\r
-*.c\r
+#
+# Copyright (c) 2019, Linaro Ltd. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+*.dec
+*.dsc.inc
+*.dsc
+*.fdf
+*.inf
+*.h
+*.vfr
+*.c