From 791d3e1553d0a8b4103bb499fce26688b8cf217a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Sat, 8 Sep 2012 20:11:43 -0300 Subject: Retrieve help --- git-shell-commands/help | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 git-shell-commands/help (limited to 'git-shell-commands/help') diff --git a/git-shell-commands/help b/git-shell-commands/help new file mode 100755 index 0000000..45f0bd6 --- /dev/null +++ b/git-shell-commands/help @@ -0,0 +1,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 -- cgit v1.2.3