From: "Jordan Justen" <jordan.l.justen@intel.com>
To: "Kinney, Michael D" <michael.d.kinney@intel.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>,
"lersek@redhat.com" <lersek@redhat.com>
Cc: "Feng, Bob C" <bob.c.feng@intel.com>,
"Gao, Liming" <liming.gao@intel.com>
Subject: Re: [edk2-devel] [Patch 3/3] BaseTools/PatchCheck: Disable text conversion in 'git show'
Date: Wed, 07 Aug 2019 12:42:43 -0700 [thread overview]
Message-ID: <156520696314.20973.15022549262963633561@jljusten-skl> (raw)
In-Reply-To: <E92EE9817A31E24EB0585FDF735412F5B9D83B8A@ORSMSX113.amr.corp.intel.com>
On 2019-08-05 15:01:14, Kinney, Michael D wrote:
> Laszlo,
>
> The context of this change is only to the PatchCheck.py tool.
> and how that tool uses git show.
>
> I agree with the summary of very flexible capabilities in git
> to help developers review different types of files. All of
> those settings that were added to support UNI files in UTF-16
> file format were very valuable when we had to review the
> text changes to those binary files. We should be using UTF-8
> now, and we can even extend PatchCheck.py to flag an error if
> a UNI file is in UTF-16 format.
Ah. If we are to the point where we want to actively prevent utf-16 in
the tree, then this sounds like a good idea.
> I still prefer we make this change only to PatchCheck.py to
> prevent false positives and print lines of text that can
> not be found in a developer's working directory. I prefer
> this one time change to PatchCheck.py instead of having to
> update .gitattributes whenever the git show features are
> extended to convert more binary files to text files.
I think it's pretty rare for EDK II to add new binary file types, but
I don't feel too strongly on this. I thought adding Laszlo's settings
to .gitattributes might amount to solving two issues with one change.
Since Laszlo acked this patch, I'll go ahead with:
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
> My expectation is that EDK II Maintainers need to review
> if a binary file is ok or not for a repo. I would also be
> ok with adding general rules to PatchCheck.py to generate
> an error if a binary file is added/updated in one of the
> text only repos (edk2, edk2-platforms) and not generate
> an error if a binary file is added/updated in a repo that
> supports binaries (edk-non-osi).
next prev parent reply other threads:[~2019-08-07 19:42 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-02 0:13 [Patch 0/3] BaseTools/PatchCheck: Fix false positives Michael D Kinney
2019-08-02 0:13 ` [Patch 1/3] BaseTools/PatchCheck: Ignore blank lines in diff Michael D Kinney
2019-08-02 0:13 ` [Patch 2/3] BaseTools/PatchCheck: Add copy from/to keywords Michael D Kinney
2019-08-02 0:13 ` [Patch 3/3] BaseTools/PatchCheck: Disable text conversion in 'git show' Michael D Kinney
2019-08-02 18:29 ` Jordan Justen
2019-08-02 18:51 ` Michael D Kinney
2019-08-02 23:57 ` Laszlo Ersek
2019-08-05 22:01 ` [edk2-devel] " Michael D Kinney
2019-08-07 13:26 ` Laszlo Ersek
2019-08-07 19:42 ` Jordan Justen [this message]
2019-08-08 20:57 ` Laszlo Ersek
2019-08-08 21:08 ` Michael D Kinney
2019-08-08 21:15 ` Andrew Fish
2019-08-08 22:34 ` Laszlo Ersek
2019-08-02 7:59 ` [edk2-devel] [Patch 0/3] BaseTools/PatchCheck: Fix false positives Bob Feng
2019-08-02 18:30 ` Jordan Justen
2019-08-07 11:41 ` Liming Gao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=156520696314.20973.15022549262963633561@jljusten-skl \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox