Allow creation of arbitrary git-shell commands
commit2dbc887eaa6fbd787edfc9472b86b0faeb54e2ae
authorGreg Brockman <gdb@MIT.EDU>
Thu, 29 Jul 2010 00:31:01 +0000 (28 17:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Aug 2010 22:16:15 +0000 (12 15:16 -0700)
tree5821f1adecc58bf28c513d53addaf6d37f3093a2
parent64fdc08dac6694d1e754580e7acb82dfa4988bb9
Allow creation of arbitrary git-shell commands

This provides a mechanism for the server to expose custom
functionality to clients.  My particular use case is that I would like
a way of discovering all repositories available for cloning.  A
client that clones via

  git clone user@example.com

can invoke a command by

  ssh user@example.com $command

Signed-off-by: Greg Brockman <gdb@mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
shell.c