Revision f1ed9d7dc0e49dc1a044941d821c9d2342313c26 authored by Junio C Hamano on 15 August 2023, 17:20:02 UTC, committed by Junio C Hamano on 15 August 2023, 17:20:02 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f9fe84b
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
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...