https://github.com/git/git
Raw File
Tip revision: 217f2767cbcb562872437eed4dec62e00846d90c authored by Junio C Hamano on 05 October 2017, 04:49:07 UTC
Git 2.15-rc0
Tip revision: 217f276
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