https://github.com/git/git
Raw File
Tip revision: ab84621754e9c6f05279b42e51b445baac28a8ea authored by Junio C Hamano on 13 May 2013, 18:09:42 UTC
Git 1.8.3-rc2
Tip revision: ab84621
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