aboutsummaryrefslogtreecommitdiff
path: root/cgit/ssh/git-shell-commands/list
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-07-05 22:37:01 +0530
committerAkshay Nair <phenax5@gmail.com>2026-07-05 22:37:01 +0530
commit4d5182ad994c3bee390f3c21af4c43fc24428eef (patch)
treedb4f6a71520c4b948c6a48a6d27d4a4dbe1afbaf /cgit/ssh/git-shell-commands/list
parentc20d74cb5793d5821eadb2f96ac2e8e336e9a94a (diff)
downloadbacchus-remote-4d5182ad994c3bee390f3c21af4c43fc24428eef.tar.gz
bacchus-remote-4d5182ad994c3bee390f3c21af4c43fc24428eef.zip
Add category command and styles
Diffstat (limited to '')
-rwxr-xr-xcgit/ssh/git-shell-commands/list15
1 files changed, 5 insertions, 10 deletions
diff --git a/cgit/ssh/git-shell-commands/list b/cgit/ssh/git-shell-commands/list
index 804a488..8a924c9 100755
--- a/cgit/ssh/git-shell-commands/list
+++ b/cgit/ssh/git-shell-commands/list
@@ -1,13 +1,8 @@
#!/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
+git_dir=/git
+
+ls -1 "$git_dir" | while IPS="" read name; do
+ echo "$name||||$(cat "${git_dir}/${name}/description" 2>/dev/null)"
+done | column -t -d -s "||||"