From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id D4A27740039 for ; Fri, 29 Sep 2023 22:24:22 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=lVdSh33BCCI5KlLaARJvpsV5GWGNK0woLxHa8ZkW2oY=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1696026261; v=1; b=P27Zt67j9U4xioo8eFZn453lcJffTSZr6h8XHQDir4fWu+DXOAJPRVlYTLPqmR3NbvJnDoHU WMi5dCOcpav1AH1B603ttd/iEvAxyMNh47ZsLku57+QLL/UY8+wNQhLGhw0Eg0mvv+ez68Ob3Us QmbxF8tCV5KwQYzvbb47sFuM= X-Received: by 127.0.0.2 with SMTP id 0TJCYY7687511xS1MUrLZefg; Fri, 29 Sep 2023 15:24:21 -0700 X-Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mx.groups.io with SMTP id smtpd.web10.30902.1696026260550130200 for ; Fri, 29 Sep 2023 15:24:20 -0700 X-Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5046bf37daeso13685528e87.1 for ; Fri, 29 Sep 2023 15:24:20 -0700 (PDT) X-Gm-Message-State: 4FWOonMwcGIuXxO4SfwR8k9Zx7686176AA= X-Google-Smtp-Source: AGHT+IEo13apLDv75osG3uxnTcYkIBE8gR07to+1DeHRkm8VHGszkgypVJ3WzlNp6L5wd0Qg+TUclA== X-Received: by 2002:a05:6512:6c6:b0:503:7dd:7ebf with SMTP id u6-20020a05651206c600b0050307dd7ebfmr5937868lff.63.1696026258500; Fri, 29 Sep 2023 15:24:18 -0700 (PDT) X-Received: from localhost.localdomain ([185.9.78.108]) by smtp.gmail.com with ESMTPSA id l3-20020ac24303000000b005032907710asm3588606lfh.237.2023.09.29.15.24.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 29 Sep 2023 15:24:18 -0700 (PDT) From: "Mike Maslenkin" To: devel@edk2.groups.io Cc: abner.chang@amd.com, nicklew@nvidia.com, igork@ami.com, Mike Maslenkin Subject: [edk2-devel] [PATCH 1/2] RedfishClientPkg/.github: tune file list for uncrustify check Date: Sat, 30 Sep 2023 01:24:13 +0300 Message-Id: <20230929222414.47115-2-mike.maslenkin@gmail.com> In-Reply-To: <20230929222414.47115-1-mike.maslenkin@gmail.com> References: <20230929222414.47115-1-mike.maslenkin@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mike.maslenkin@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=P27Zt67j; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Original "HEAD~$NO_COMMITS" returns a diff agains current repo state including not stashed changes. As the purpose of uncrustify is to check commits, let's get changes against HEAD itself and ignore local modifications. Signed-off-by: Mike Maslenkin --- .github/workflows/uncrustify-check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/uncrustify-check.sh b/.github/workflows/uncrustify-check.sh index ff61a6ae0f61..c94b892634b8 100755 --- a/.github/workflows/uncrustify-check.sh +++ b/.github/workflows/uncrustify-check.sh @@ -31,7 +31,7 @@ fi cd "$REPO_PATH" FAILURE=0 -CHANGED_FILES=$(git diff --name-only HEAD~$NO_COMMITS | grep '\(\.c$\|\.h$\)') +CHANGED_FILES=$(git diff --name-only HEAD~$NO_COMMITS..HEAD | grep '\(\.c$\|\.h$\)') if [ -z "$CHANGED_FILES" ] then echo "No c or h file to run uncrustify check" -- 2.32.0 (Apple Git-132) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109231): https://edk2.groups.io/g/devel/message/109231 Mute This Topic: https://groups.io/mt/101667894/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-