From eeaba25642392532901cd4c95c23054e9a7ba2b3 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 24 Jun 2026 09:41:43 +0200 Subject: feat: repo list - list all repos, public and private New gitctl repo list / helper list-repos verb. Source of truth is the bare repos on disk (REPO_BASE/*.git), not cgitrc, so private repos (absent from cgitrc since cgit auto-discovery is off) show too. Each repo is tagged PUB/PRIV by cgitrc membership, with its section and a 60-char description from the repo's description file. Client renders an aligned table, green public / dim private on a TTY. Adds repo_sections_from() primitive; find_repo_section becomes a thin lookup over it. Self-tests cover the cgitrc parse and a temp-FS scan. Updates README, SKILL.md, bash completion (repo list action), TODO. Co-Authored-By: Claude Opus 4.8 --- completions/gitctl.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'completions') diff --git a/completions/gitctl.bash b/completions/gitctl.bash index 0b680dd..6fead65 100644 --- a/completions/gitctl.bash +++ b/completions/gitctl.bash @@ -31,7 +31,7 @@ _gitctl() { 2) case $group in sections) COMPREPLY=($(compgen -W "list add" -- "$cur")) ;; - repo) COMPREPLY=($(compgen -W "create desc add-remote" -- "$cur")) ;; + repo) COMPREPLY=($(compgen -W "create list desc add-remote" -- "$cur")) ;; esac return ;; esac -- cgit v1.2.3