0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-19 19:42:30 +02:00
openvpn/dev-tools
Heiko Hund d78c2a73a8 pre-commit: uncrustify based on staged changes
Previously the generated patch was based on the file(s) in the working
directory. This is a problem if you have not to be commited changes
there and these changes fix formatting issues that exist in the staging
area. This effectively circumventes the script from rejecting the
commit.

An example:
   git add file.c
   git commit
   ... pre-commit hooks complains about formatting ...
   ... you fix the file manually, forget to git add ...
   git commit
   ... succeeds, even though the commit still has issues ...

Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Antonio Quartulli <a@unstable.cc>
Message-Id: <20220517210121.1312072-1-heiko@ist.eigentlich.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24376.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
2022-05-22 17:18:20 +02:00
..
gen-release-tarballs.sh update copyright year to 2022 2022-01-26 13:38:41 +01:00
git-pre-commit-uncrustify.sh pre-commit: uncrustify based on staged changes 2022-05-22 17:18:20 +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: have exactly one newline at the end of files 2022-05-22 17:16:08 +02:00
update-copyright.sh update copyright year to 2022 2022-01-26 13:38:41 +01:00