From: "flichtenheld (Code Review)" Date: Mon, 26 May 2025 11:27:45 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <497fa634036c188a4d43a62c7b2d4adeac99411e-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="CaCGM2Fzz6M="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[release/2.6]: git-pre-commit-uncrustify: Make sure to not run on branches with clan... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --CaCGM2Fzz6M= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1031?usp=3Demail to review the following change. Change subject: git-pre-commit-uncrustify: Make sure to not run on branches= with clang-format ...................................................................... git-pre-commit-uncrustify: Make sure to not run on branches with clang-form= at If a .clang-format file is present, do not run this hook. This allows to keep this installed while working also on newer branches that do not use uncrustify anymore. Change-Id: Ifd36651a3713dd6f2e585f0771f349178a494360 Signed-off-by: Frank Lichtenheld --- M dev-tools/git-pre-commit-uncrustify.sh 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/31/1031/1 diff --git a/dev-tools/git-pre-commit-uncrustify.sh b/dev-tools/git-pre-com= mit-uncrustify.sh index 9851c21..1f49086 100755 --- a/dev-tools/git-pre-commit-uncrustify.sh +++ b/dev-tools/git-pre-commit-uncrustify.sh @@ -58,6 +58,12 @@ exit 0 fi + +if [ -f .clang-format ]; then + echo "skipping uncrustify due to presence of .clang-format" + exit 0 +fi + # check whether the given file matches any of the set extensions matches_extension() { local filename=3D"$(basename -- "$1")" -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1031?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: release/2.6 Gerrit-Change-Id: Ifd36651a3713dd6f2e585f0771f349178a494360 Gerrit-Change-Number: 1031 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-MessageType: newchange --CaCGM2Fzz6M= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

V= iew Change

git-pre-commit-uncrustify: Make sure to not run on branches =
with clang-format

If a .clang-format file is present, do not run thi= s hook.
This allows to keep this installed while working also on
newe= r branches that do not use uncrustify anymore.

Change-Id: Ifd36651a3= 713dd6f2e585f0771f349178a494360
Signed-off-by: Frank Lichtenheld <fra= nk@...2641...>
---
M dev-tools/git-pre-commit-uncrustify.sh
1 f= ile changed, 6 insertions(+), 0 deletions(-)

git pull ssh://gerri=
t.openvpn.net:29418/openvpn refs/changes/31/1031/1
diff --git a/dev=
-tools/git-pre-commit-uncrustify.sh b/dev-tools/git-pre-commit-uncrustify.s=
h
index 9851c21..1f49086 100755
--- a/dev-t= ools/git-pre-commit-uncrustify.sh
+++ b/dev-tools/git-pre-c= ommit-uncrustify.sh
@@ -58,6 +58,12 @@
= exit 0
fi

+
+if [ -f .clang-format ]; then
+ echo "skipping uncrustify due to presence of .cla= ng-format"
+ = exit 0
+fi
= +
# check whet= her the given file matches any of the set extensions
match= es_extension() {
local filename=3D"$(basename -- = "$1")"

To view, visit change 103= 1. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: Ifd36651a3713dd6f2e585f0771f= 349178a494360
Gerrit-Change-Number: 1031
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-MessageType: newchange
--CaCGM2Fzz6M=--