From 4d5182ad994c3bee390f3c21af4c43fc24428eef Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 5 Jul 2026 22:37:01 +0530 Subject: Add category command and styles --- cgit/ssh/git-shell-commands/list | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'cgit/ssh/git-shell-commands/list') 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 "" - 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 "||||" -- cgit v1.3.1