summaryrefslogtreecommitdiff
path: root/git-shell-commands
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-09-08 20:11:43 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-09-08 20:11:43 -0300
commit791d3e1553d0a8b4103bb499fce26688b8cf217a (patch)
tree9e3b7d7366a9f160b39bec4bb236d9c4c001508e /git-shell-commands
parentc562e291c0adca7cb7dd2e1ce5ac26e1cd405603 (diff)
Retrieve help
Diffstat (limited to 'git-shell-commands')
-rwxr-xr-xgit-shell-commands/change-description5
-rwxr-xr-xgit-shell-commands/create-bare-repo5
-rwxr-xr-xgit-shell-commands/help12
-rwxr-xr-xgit-shell-commands/mirror5
4 files changed, 21 insertions, 6 deletions
diff --git a/git-shell-commands/change-description b/git-shell-commands/change-description
index d29eaa8..c8abdab 100755
--- a/git-shell-commands/change-description
+++ b/git-shell-commands/change-description
@@ -1,6 +1,7 @@
#!/bin/sh
-# Allows users to change project description
-# $ ssh git@host change-description repo "description"
+# * change-description
+# Allows users to change project description
+# ssh git@host change-description repo "description"
set -e
diff --git a/git-shell-commands/create-bare-repo b/git-shell-commands/create-bare-repo
index b0174e2..ec98b33 100755
--- a/git-shell-commands/create-bare-repo
+++ b/git-shell-commands/create-bare-repo
@@ -1,6 +1,7 @@
#!/bin/sh
-# Allows users to create repo.git
-# $ ssh git@host create-bare-repo repo1 repo2 ...
+# * create-bare-repo
+# Allows users to create repo.git
+# ssh git@host create-bare-repo repo1 repo2 ...
set -e
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
diff --git a/git-shell-commands/mirror b/git-shell-commands/mirror
index 6a2c254..c634b9e 100755
--- a/git-shell-commands/mirror
+++ b/git-shell-commands/mirror
@@ -1,6 +1,7 @@
#!/bin/sh
-# Mirrors a repository
-# ssh git@host mirror git://url/repo.git
+# * mirror
+# Mirrors a repository
+# ssh git@host mirror git://url/repo.git
set -E