summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-03-07 19:31:12 -0600
committerJeff Carr <[email protected]>2024-03-07 19:31:12 -0600
commita048e33f587a8883f8a4f71d27c5dedb6b0afc6c (patch)
tree2fbf10005db1384e0989c406b973b61bec6035c7
parent2f451477c80acdfdc39e38378a2572a64c6b57d7 (diff)
working on go-clonev0.22.1
-rw-r--r--common.go4
-rw-r--r--newRepo.go2
-rw-r--r--scan.go26
3 files changed, 1 insertions, 31 deletions
diff --git a/common.go b/common.go
index f482ac7..c41970d 100644
--- a/common.go
+++ b/common.go
@@ -58,10 +58,6 @@ func (rs *RepoRow) Name() string {
return rs.Status.Path()
}
-func (r *RepoRow) Exists(s string) bool {
- return false
-}
-
func (r *RepoRow) GoPath() string {
return r.Status.GoPath()
}
diff --git a/newRepo.go b/newRepo.go
index 8c9eb77..3b8d47e 100644
--- a/newRepo.go
+++ b/newRepo.go
@@ -143,7 +143,7 @@ func (r *RepoList) makeAutotypistView(newRepo *RepoRow) {
var showBuildB bool = false
switch newRepo.Status.RepoType() {
case "binary":
- log.Info("showing compile here button")
+ // log.Info("showing compile here button")
showBuildB = true
case "library":
// log.Info("library here. Hide()")
diff --git a/scan.go b/scan.go
index f4b0921..62033d5 100644
--- a/scan.go
+++ b/scan.go
@@ -2,12 +2,9 @@ package repolist
import (
"fmt"
- "os"
- "path/filepath"
"strconv"
"strings"
- "go.wit.com/lib/gui/repostatus"
"go.wit.com/log"
)
@@ -73,26 +70,3 @@ func (r *RepoRow) NewScan() int {
return changed
}
-
-func ScanGitDirectories(srcDir string) []string {
- var all []string
- err := filepath.Walk(srcDir, func(path string, info os.FileInfo, err error) error {
- if err != nil {
- log.Log(REPOWARN, "Error accessing path:", path, err)
- return nil
- }
-
- // Check if the path is a directory and has a .git subdirectory
- if info.IsDir() && repostatus.IsGitDir(path) {
- all = append(all, path)
- }
-
- return nil
- })
-
- if err != nil {
- log.Log(REPOWARN, "Error walking the path:", srcDir, err)
- }
-
- return all
-}