From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web09.7744.1637646311113360089 for ; Mon, 22 Nov 2021 21:45:11 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: michael.d.kinney@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10176"; a="234903534" X-IronPort-AV: E=Sophos;i="5.87,256,1631602800"; d="scan'208";a="234903534" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2021 21:45:09 -0800 X-IronPort-AV: E=Sophos;i="5.87,256,1631602800"; d="scan'208";a="674336716" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.212.191.131]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2021 21:45:09 -0800 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Sean Brogan , Bret Barkelew , Liming Gao , Michael Kubacki Subject: [Patch 0/3] .pytool/Plugin/EccCheck: Remove git reset and optimize Date: Mon, 22 Nov 2021 21:44:52 -0800 Message-Id: <20211123054455.600-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.32.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2986 * Use temp directory for all operations to prevent any changed to git state. * Remove git reset operation that could corrupt staged and local changes. * Improve performance by removing redundant directory scans * Improve performance and reduce log file sizes by using --output option of git diff to a temp file instead of using stdout. Cc: Sean Brogan Cc: Bret Barkelew Cc: Liming Gao Cc: Michael Kubacki Signed-off-by: Michael D Kinney Michael D Kinney (3): .pytool/Plugin/EccCheck: Remove RevertCode() .pytool/Plugin/EccCheck: Remove temp directory on exception .pytool/Plugin/EccCheck: Add performance optimizations .pytool/Plugin/EccCheck/EccCheck.py | 245 +++++++++++++++++++--------- 1 file changed, 172 insertions(+), 73 deletions(-) -- 2.32.0.windows.1