https://github.com/git/git
Revision 99fe1c606925ecd427af6e0338ec18936407ba48 authored by Junio C Hamano on 22 May 2021, 09:29:00 UTC, committed by Junio C Hamano on 22 May 2021, 09:29:00 UTC
The "rev-parse" command did not diagnose the lack of argument to
"--path-format" option, which was introduced in v2.31 era, which
has been corrected.

* wm/rev-parse-path-format-wo-arg:
  rev-parse: fix segfault with missing --path-format argument
2 parent s 107691c + 99fc555
Raw File
Tip revision: 99fe1c606925ecd427af6e0338ec18936407ba48 authored by Junio C Hamano on 22 May 2021, 09:29:00 UTC
Merge branch 'wm/rev-parse-path-format-wo-arg'
Tip revision: 99fe1c6
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