summaryrefslogtreecommitdiff
path: root/contrib/git-shell-commands/README
diff options
context:
space:
mode:
authorLibravatar Greg Brockman <gdb@MIT.EDU>2010-07-28 00:43:04 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-08-12 15:16:31 -0700
commit54baefda8c0bbee461a4cd68dca970d92fddced0 (patch)
tree65d0c395c0bd63da14713a2c3ee3c9d132a48023 /contrib/git-shell-commands/README
parentAdd interactive mode to git-shell for user-friendliness (diff)
downloadtgif-54baefda8c0bbee461a4cd68dca970d92fddced0.tar.xz
Add sample commands for git-shell
Provide a 'list' command to view available bare repositories ending in .git and a 'help command to display usage. Also add documentation in a README Signed-off-by: Greg Brockman <gdb@mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/git-shell-commands/README')
-rw-r--r--contrib/git-shell-commands/README18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/git-shell-commands/README b/contrib/git-shell-commands/README
new file mode 100644
index 0000000000..438463b160
--- /dev/null
+++ b/contrib/git-shell-commands/README
@@ -0,0 +1,18 @@
+Sample programs callable through git-shell. Place a directory named
+'git-shell-commands' in the home directory of a user whose shell is
+git-shell. Then anyone logging in as that user will be able to run
+executables in the 'git-shell-commands' directory.
+
+Provided commands:
+
+help: Prints out the names of available commands. When run
+interactively, git-shell will automatically run 'help' on startup,
+provided it exists.
+
+list: Displays any bare repository whose name ends with ".git" under
+user's home directory. No other git repositories are visible,
+although they might be clonable through git-shell. 'list' is designed
+to minimize the number of calls to git that must be made in finding
+available repositories; if your setup has additional repositories that
+should be user-discoverable, you may wish to modify 'list'
+accordingly.