https://github.com/git/git
Raw File
Tip revision: 121f71f0da1bc9a4e1e96be2c3e683191a82a354 authored by Junio C Hamano on 03 June 2012, 22:53:58 UTC
Git 1.7.10.4
Tip revision: 121f71f
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