Kevin D Davis |
Leif,
There were a few files when the license change patches
were created that failed PatchCheck.py.
I am trying to resolve those before the license change
so the license change patches do not have any PatchCheck.py
failures.
If I do these as part of the license change, then the
change will look larger than just the license change in
these files.
I prefer to have a separate patch to resolve the line
endings.
There may be other files in edk2 repo that have mixed
line endings in lines not associated with the license
change itself. We can consider cleaning those up in
a separate series.
The other option is to abandon these patches to normalize
line endings and allow the license change patches to not
pass PatchCheck.py.
Which do you prefer?
Thanks,
Mike-----Original Message-----From: Laszlo Ersek [mailto:lersek@redhat.com]Sent: Thursday, April 4, 2019 3:39 AMTo: Leif Lindholm <leif.lindholm@linaro.org>; Kinney,Michael D <michael.d.kinney@intel.com>Cc: devel@edk2.groups.io; Ard Biesheuvel<ard.biesheuvel@linaro.org>; Andrew Fish<afish@apple.com>Subject: Re: [Patch 0/4] Normalize line endings to CRLFin ARM packagesOn 04/04/19 05:54, Leif Lindholm wrote:Hi Mike,This looks fine. But I did have one thought:If we're just about to touch pretty much every file inthe tree anyway- can we consider doing the full conversion to nativeline endings atthe same time?(This doesn't help the 'git blame' problem, it justreminded me.)The git-blame issue that such a conversion introduces isnot terrible.Let's say you rungit blame -- ArmPkg/Library/GccLto/liblto-arm.sand it gives you a commit for a specific line you careabout. Let's callthat commit C1.Then you dogit show --color C1 | lessand expect to see the commit message & patch thatintroduced the *logic*on that line. But, you only see a "useless" CRLFconversion, in thatcommit. So what do you do? Simple, repeat the process asfollows:git blame C1^ -- ArmPkg/Library/GccLto/liblto-arm.sThis will assign blame on the lines of the file as thefile was rightbefore C1 changed the line terminators.The problem that I think *is* worse is that, jumpingabout in the githistory (with git checkout / git bisect), around thelarge conversioncommit, will expose the user in a brief time to filesthat are both LFand CRLF encoded, internally. Therefore, whatever theirlocalauto-conversion-on-checkout settings are, some commitsin such a worksession will not match those settings.For example, assuming you are on Windows, and set upLF-to-CRLF-on-checkout (as you should), then git-checkout a commit frombefore the "LF only" conversion commit, you might seedouble CRs. Iguess. I never tested it.ThanksLaszlo/LeifOn Wed, Apr 03, 2019 at 03:00:10PM -0700, Kinney,Michael D wrote:https://bugzilla.tianocore.org/show_bug.cgi?id=1659Normalize line endings to use CRLF to passPatchCheck.pyCc: Leif Lindholm <leif.lindholm@linaro.org>Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>Cc: Laszlo Ersek <lersek@redhat.com>Contributed-under: TianoCore Contribution Agreement1.1Signed-off-by: Michael D Kinney<michael.d.kinney@intel.com>Kinney, Michael D (4):ArmPkg/ArmScmiDxe: Remove non-ASCII character incommentArmPkg: Normalize line endings to CRLFArmVirtPkg: Normalize line endings to CRLFArmPlatformPkg: Normalize line endings to CRLF.../ArmScmiPerformanceProtocolPrivate.h | 2+-ArmPkg/Library/ArmSmcLibNull/ArmSmcLibNull.c | 44+-.../ArmSmcPsciResetSystemLib/AArch64/Reset.S | 60+-.../AArch64/Reset.asm | 70+-.../ArmSmcPsciResetSystemLib/Arm/Reset.S | 58+-.../ArmSmcPsciResetSystemLib/Arm/Reset.asm | 68+-ArmPkg/Library/CompilerIntrinsicsLib/memset.c | 124++--ArmPkg/Library/GccLto/liblto-aarch64.s | 54+-ArmPkg/Library/GccLto/liblto-arm.s | 122++--ArmPlatformPkg/Scripts/Ds5/profile.py | 668+++++++++---------ArmVirtPkg/Include/Platform/Hidden.h | 56+-11 files changed, 663 insertions(+), 663 deletions(-)--2.21.0.windows.1