https://github.com/git/git
Raw File
Tip revision: cd0887327544ecdc8778e16219aec3f43b0dd682 authored by Junio C Hamano on 05 May 2017, 04:08:54 UTC
Git 2.8.5
Tip revision: cd08873
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