0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-20 03:52:28 +02:00
openvpn/dev-tools
Heiko Hund 237ba88868 Add git pre-commit hook script to uncrustify
The script is self installing if you call it with "install" as the first
parameter. Once installed as the pre-commit hook it will check files to
be committed according to the rules in uncrustify.conf and abort the
commit if there's formatting issues. The script produces a patch in /tmp
which can be git apply'ed to fix all issues found.

The script was originally authored by David Martin [1] and slightly
modified to fit our needs. At the time it had a 2-clause BSD license.

[1] https://github.com/ddddavidmartin/Pre-commit-hooks

Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20220421164330.2483743-1-heiko@ist.eigentlich.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24141.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
2022-04-22 09:25:55 +02:00
..
gen-release-tarballs.sh update copyright year to 2022 2022-01-26 13:38:41 +01:00
git-pre-commit-uncrustify.sh Add git pre-commit hook script to uncrustify 2022-04-22 09:25:55 +02:00
reformat-all.sh dev-tools: Remove uncrustify -p 2022-04-21 09:27:18 +02:00
special-files.lst dev-tools: Remove no longer needed openvpn-plugin.h.in patching 2022-04-21 09:22:23 +02:00
uncrustify.conf uncrustify openvpn/ sources 2018-12-12 13:43:17 +01:00
update-copyright.sh update copyright year to 2022 2022-01-26 13:38:41 +01:00