Staging
v0.8.1
https://github.com/git/git
Raw File
Tip revision: 85e9c7e1d42849c5c3084a9da748608468310c0e authored by Junio C Hamano on 23 September 2011, 22:35:57 UTC
Git 1.7.7-rc3
Tip revision: 85e9c7e
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