https://github.com/git/git
Revision 28a925bc515c3672a46739434aefb78593ee6883 authored by Junio C Hamano on 18 October 2017, 05:19:09 UTC, committed by Junio C Hamano on 18 October 2017, 05:19:09 UTC
Doc update.

* bb/doc-eol-dirty:
  Documentation: mention that `eol` can change the dirty status of paths
2 parent s 0445bd7 + 3bc4b8f
Raw File
Tip revision: 28a925bc515c3672a46739434aefb78593ee6883 authored by Junio C Hamano on 18 October 2017, 05:19:09 UTC
Merge branch 'bb/doc-eol-dirty' into maint
Tip revision: 28a925b
check-builtins.sh
#!/bin/sh

{
	cat <<\EOF
sayIt:
	$(foreach b,$(BUILT_INS),echo XXX $(b:$X=) YYY;)
EOF
	cat Makefile
} |
make -f - sayIt 2>/dev/null |
sed -n -e 's/.*XXX \(.*\) YYY.*/\1/p' |
sort |
{
    bad=0
    while read builtin
    do
	base=$(expr "$builtin" : 'git-\(.*\)')
	x=$(sed -ne 's/.*{ "'$base'", \(cmd_[^, ]*\).*/'$base'	\1/p' git.c)
	if test -z "$x"
	then
		echo "$base is builtin but not listed in git.c command list"
		bad=1
	fi
	for sfx in sh perl py
	do
		if test -f "$builtin.$sfx"
		then
			echo "$base is builtin but $builtin.$sfx still exists"
			bad=1
		fi
	done
    done
    exit $bad
}
back to top