https://github.com/git/git
Raw File
Tip revision: 70fcaef90bad282cf141a7c2e7ae87b13fe0700e authored by Junio C Hamano on 05 May 2017, 03:56:19 UTC
Git 2.6.7
Tip revision: 70fcaef
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