https://github.com/git/git
Raw File
Tip revision: 7e2010537e96d0a1144520222f20ba1dc3d61441 authored by Junio C Hamano on 17 October 2012, 17:36:01 UTC
Git 1.7.12.4
Tip revision: 7e20105
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