aboutsummaryrefslogtreecommitdiff
path: root/cgit/ssh/git-shell-commands/list
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-07-04 18:12:10 +0530
committerAkshay Nair <phenax5@gmail.com>2026-07-04 18:46:35 +0530
commit2cd9a4039c0c5f524df0a33605c9baef1f57917e (patch)
tree5e17ce2f0c78d663cf6f2f7be5abe769dc7a3f71 /cgit/ssh/git-shell-commands/list
parentef34b26068c4e25f929a584edda63b8878c063b3 (diff)
downloadbacchus-remote-2cd9a4039c0c5f524df0a33605c9baef1f57917e.tar.gz
bacchus-remote-2cd9a4039c0c5f524df0a33605c9baef1f57917e.zip
Add git shell commands
Diffstat (limited to '')
-rwxr-xr-xcgit/ssh/git-shell-commands/list13
1 files changed, 13 insertions, 0 deletions
diff --git a/cgit/ssh/git-shell-commands/list b/cgit/ssh/git-shell-commands/list
new file mode 100755
index 0000000..804a488
--- /dev/null
+++ b/cgit/ssh/git-shell-commands/list
@@ -0,0 +1,13 @@
+#!/usr/bin/env sh
+
+ls -1 /git | while IPS="" read name; do
+ echo "$name"
+ printf " description: "
+ if [ -f "/git/${name}/description" ]; then
+ cat "/git/${name}/description"
+ else
+ echo "<no description>"
+ fi
+ echo ""
+done
+