blob: 9e37fd201adfc70803108dfa92edcda757904708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
#
# /usr/local/share/git-core/contrib/git-shell-commands/help
#
# Aaron LI
# 2017-06-18
#
if tty -s; then
echo "Run 'help' for help, or 'exit' to leave. Available commands:"
else
echo "Run 'help' for help. Available commands:"
fi
dir=$(dirname "$0")
cd "${dir}"
for cmd in *; do
case "${cmd}" in
help) ;;
*.disabled) ;;
*) [ -f "${cmd}" ] && [ -x "${cmd}" ] && echo "${cmd}" ;;
esac
done
|