https://github.com/git/git
Raw File
Tip revision: c48035d29b4e524aed3a32f0403676f0d9128863 authored by Junio C Hamano on 12 December 2022, 00:59:08 UTC
Git 2.39
Tip revision: c48035d
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