https://github.com/git/git
Raw File
Tip revision: 4d0b43aa765a0056c88381eea862364c95e358ca authored by Johannes Schindelin on 17 March 2022, 09:57:52 UTC
Git 2.34.2
Tip revision: 4d0b43a
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