Revision b927c80531cca9b9107754186532e8cb00884008 authored by Junio C Hamano on 22 October 2020, 22:07:25 UTC, committed by Junio C Hamano on 22 October 2020, 22:07:25 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 380ba99
generate-configlist.sh
#!/bin/sh
echo "/* Automatically generated by generate-configlist.sh */"
echo
print_config_list () {
cat <<EOF
static const char *config_name_list[] = {
EOF
grep -h '^[a-zA-Z].*\..*::$' Documentation/*config.txt Documentation/config/*.txt |
sed '/deprecated/d; s/::$//; s/, */\n/g' |
sort |
sed 's/^.*$/ "&",/'
cat <<EOF
NULL,
};
EOF
}
echo
print_config_list
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...