Revision 6a6621fe9a226f15f3107fd559928e9b78b51cc2 authored by Junio C Hamano on 24 May 2023, 20:53:55 UTC, committed by Junio C Hamano on 24 May 2023, 20:53:55 UTC
Fix-up to a topic already graduated to 'master'.

* sl/sparse-write-tree-part-2:
  t1092: update a write-tree test
2 parent s 9e49351 + 6e21017
Raw File
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