From: Ben Beltran Date: Mon, 12 Nov 2018 22:14:41 +0000 (+0100) Subject: Add githook and Makefile to install X-Git-Tag: 1.0.0^2~2^2~4 X-Git-Url: https://git.r.bdr.sh/rbdr/ngx_http_office_hours_filter_module/commitdiff_plain/17a7fd4ffc64e8323c7caf2bf93a24cb138ac27a?ds=sidebyside;hp=e9c92205141cdc043669ac7c46d937133ec1c81b Add githook and Makefile to install --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2dad03f --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +setup_hooks: + ln -s ../../scripts/git-hooks/pre-commit .git/hooks/pre-commit + +format: + indent ngx_office_hours.c diff --git a/scripts/git-hooks/pre-commit b/scripts/git-hooks/pre-commit new file mode 100755 index 0000000..6a9ebca --- /dev/null +++ b/scripts/git-hooks/pre-commit @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +make format