https://github.com/git/git
Raw File
Tip revision: 9bcd7a8ecac1c9196bc927647bd06c38ec1feabe authored by Johannes Schindelin on 17 March 2022, 09:57:38 UTC
Git 2.32.1
Tip revision: 9bcd7a8
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