https://github.com/git/git
Raw File
Tip revision: ae09ff2e70c80414fe778f8599fae093f658a275 authored by Sohom Datta on 05 October 2020, 07:58:26 UTC
docs: clarify git rm --cached function in gitignore note
Tip revision: ae09ff2
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
back to top