git_infra

Git infra scripts for git.bracken.jp
git clone https://git.bracken.jp/git_infra.git
Log | Files | Refs | LICENSE

commit 0942b25a3758072e59f036f61201011c3ae15f60
parent f654ea5e0a4aa1aa6e285ba9b08b2638a9c09a73
Author: Chris Bracken <chris@bracken.jp>
Date:   Mon, 30 Aug 2021 12:31:30 -0700

Sort output of grm ls

Diffstat:
Mgrm | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/grm b/grm @@ -165,21 +165,21 @@ grm_list() { -type d -name "*.git" \ -exec test -e "{}/git-daemon-export-ok" \; \ -exec test ! -e "{}/stagit-no-index" \; \ - -exec basename {} '.git' \; ;; + -exec basename {} '.git' \; | sort -f ;; private) find "${repos_root}/." ! -name . -prune \ -type d -name "*.git" \ -exec test ! -e "{}/git-daemon-export-ok" \; \ - -exec basename {} '.git' \; ;; + -exec basename {} '.git' \; | sort -f ;; hidden|unlisted) find "${repos_root}/." ! -name . -prune \ -type d -name "*.git" \ -exec test -e "{}/stagit-no-index" \; \ - -exec basename {} '.git' \; ;; + -exec basename {} '.git' \; | sort -f ;; *) find "${repos_root}/." ! -name . -prune \ -type d -name "*.git" \ - -exec basename {} '.git' \; ;; + -exec basename {} '.git' \; | sort -f ;; esac }