https://github.com/git/git
Raw File
Tip revision: a155a5f075cdc09e584a58d68bdce0c80e6c4b5a authored by Junio C Hamano on 03 December 2013, 19:16:56 UTC
Git 1.8.5.1
Tip revision: a155a5f
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