]> git.proxmox.com Git - mirror_edk2.git/commit
.pytools/Plugin/LicenseCheck: Use temp directory for git diff output
authorMichael D Kinney <michael.d.kinney@intel.com>
Sun, 21 Nov 2021 04:51:47 +0000 (20:51 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 29 Nov 2021 07:12:18 +0000 (07:12 +0000)
commit99f84ff473908761e8520d6c9e8e214ebf9b190c
treebcae0a77033a8c5e1413342ef58b1845628a8e9b
parent3019f1bbabf1ae413713a9015c07d7cb7dbcb968
.pytools/Plugin/LicenseCheck: Use temp directory for git diff output

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3746

Use --output option in git diff command to remove code diffs
from build log on stdout when LicenseCheck plugin is run.
Instead, create a temp directory for the diff output file and
remove the temp directory after the diff output is processed.

Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Acked-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Sean Brogan <sean.brogan@microsoft.com>
.pytool/Plugin/LicenseCheck/LicenseCheck.py