https://github.com/git/git
Raw File
Tip revision: bea9ecd24b0c3bf06cab4a851694fe09e7e51408 authored by Junio C Hamano on 31 May 2024, 00:18:43 UTC
Git 2.45.2
Tip revision: bea9ecd
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