https://github.com/git/git
Raw File
Tip revision: 8c8e978f5719c6a58fb998742207bf907f963143 authored by Junio C Hamano on 24 June 2017, 22:31:36 UTC
Git 2.13.2
Tip revision: 8c8e978
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