https://github.com/git/git
Raw File
Tip revision: 87ed4fc046840706138d46e0033a009e74c3887a authored by Johannes Schindelin on 17 March 2022, 09:57:44 UTC
Git 2.33.2
Tip revision: 87ed4fc
help
#!/bin/sh

if tty -s
then
	echo "Run 'help' for help, or 'exit' to leave.  Available commands:"
else
	echo "Run 'help' for help.  Available commands:"
fi

cd "$(dirname "$0")"

for cmd in *
do
	case "$cmd" in
	help) ;;
	*) [ -f "$cmd" ] && [ -x "$cmd" ] && echo "$cmd" ;;
	esac
done
back to top