Skip to contentSkip to conversation

Change in openvpn[release/2.6]: git-pre-commit-uncrustify: Make sure to not run on branches with clan...

Openvpn-devel flichtenheld (Code Review) 1 participant 3 messages May 26, 2025 – Jun 2, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1748258863000.Ifd36651a3713dd6f2e585f0771f349178a494360@...2715...

#1 lore raw

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=email

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-format

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

---
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

dev-tools/git-pre-commit-uncrustify.sh +6 -0
index 9851c21..1f49086 100755
@@ -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="$(basename -- "$1")"

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1031?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: Ifd36651a3713dd6f2e585f0771f349178a494360
Gerrit-Change-Number: 1031
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newchange

#2 lore raw
In reply to a message not in the archive

Attention is currently required from: flichtenheld, plaisthos.

cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/1031?usp=email )

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

Patch Set 1: Code-Review-1

(1 comment)

File dev-tools/git-pre-commit-uncrustify.sh:

http://gerrit.openvpn.net/c/openvpn/+/1031/comment/a69c76d3_77772c5a :
PS1, Line 66:
This is not exactly what I had in mind :-) - the commit hook is good, and I think we should run clang-format if we have a .clang-format, and uncrustify if we have an uncrustify.conf...

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1031?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: Ifd36651a3713dd6f2e585f0771f349178a494360
Gerrit-Change-Number: 1031
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Sat, 31 May 2025 20:58:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#3 lore raw
In reply to a message not in the archive

flichtenheld has abandoned this change. ( http://gerrit.openvpn.net/c/openvpn/+/1031?usp=email )

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

Abandoned

Not the wanted way forward
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1031?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: Ifd36651a3713dd6f2e585f0771f349178a494360
Gerrit-Change-Number: 1031
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: abandon