summaryrefslogtreecommitdiff
path: root/git-shell-commands/help
blob: 45f0bd67630c33073baf4340c1a8122df304dde4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# * help
#   Gets available commands
#   ssh git@host help

set -e

# Gets three lines from every git-shell-command
for c in `dirname $0`/*; do
    head -q -n4 $c | tail -n3 | sed "s/^..//"
    echo
done