Staging
v0.8.1
https://github.com/git/git
Raw File
Tip revision: 4dac0679feaebbf6545daec14480cf6b94cb74ed authored by Junio C Hamano on 25 February 2013, 16:39:23 UTC
Git 1.8.2-rc1
Tip revision: 4dac067
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