Staging
v0.5.1
v0.5.1
Revision 7e27bd589d328b9daf154c2444d1a86ec3afedb0 authored by Junio C Hamano on 29 October 2021, 22:43:50 UTC, committed by Junio C Hamano on 29 October 2021, 22:43:50 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9a95a9f
generate-hooklist.sh
#!/bin/sh
#
# Usage: ./generate-hooklist.sh >hook-list.h
cat <<EOF
/* Automatically generated by generate-hooklist.sh */
static const char *hook_name_list[] = {
EOF
sed -n \
-e '/^~~~~*$/ {x; s/^.*$/ "&",/; p;}' \
-e 'x' \
<Documentation/githooks.txt |
LC_ALL=C sort
cat <<EOF
NULL,
};
EOF
Computing file changes ...