utils: Add helper to get all repos This does a filepath.WalkDir of the config.ScanPath and tries to find all valid git repos. It returns a list of repoInfo structs holding basic information of each repository.
Tue, 03 Jan 2023
1 files changed,
57 insertions(+),
0 deletions(-)
M
routes/util.go
@@ -1,8 +1,11 @@
package routes import ( + "io/fs" + "log" "os" "path/filepath" + "strings" "git.icyphox.sh/legit/git"
… preview truncated