https://github.com/git/git
Raw File
Tip revision: cc291953df19aa4a97bee3590e708dc1fc557500 authored by Junio C Hamano on 18 April 2014, 18:21:43 UTC
Git 2.0-rc0
Tip revision: cc29195
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