summaryrefslogtreecommitdiff
path: root/findRepos.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 06:36:00 -0600
committerJeff Carr <[email protected]>2024-12-17 06:36:00 -0600
commit36073faed5babe12a4f1a34e7e74fe52516b8861 (patch)
treee916ea5753a670a02b9b0be3fb9228a6a7e3e86f /findRepos.go
parentac029ee52ce434adaf88f13fa6e45f9b3d30c275 (diff)
lots of changes here and in gitpb
Diffstat (limited to 'findRepos.go')
-rw-r--r--findRepos.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/findRepos.go b/findRepos.go
index 453f904..2882950 100644
--- a/findRepos.go
+++ b/findRepos.go
@@ -35,10 +35,10 @@ func findRepos() bool {
}
func findPrivate() {
- all := me.forge.Repos.SortByGoPath()
+ all := me.forge.Repos.SortByFullPath()
for all.Scan() {
repo := all.Next()
- if me.forge.Config.IsPrivate(repo.GoPath) {
+ if me.forge.Config.IsPrivate(repo.GetGoPath()) {
me.found.AppendUniqueGoPath(repo)
}
}
@@ -47,10 +47,10 @@ func findPrivate() {
// finds repos that are writable
func findMine() {
// log.Printf("get mine %s\n", me.forge.GetGoSrc())
- all := me.forge.Repos.SortByGoPath()
+ all := me.forge.Repos.SortByFullPath()
for all.Scan() {
repo := all.Next()
- if me.forge.Config.IsWritable(repo.GoPath) {
+ if me.forge.Config.IsWritable(repo.GetGoPath()) {
me.found.AppendUniqueGoPath(repo)
}
}
@@ -59,25 +59,25 @@ func findMine() {
// finds repos that are writable
func findFavorites() {
// log.Printf("get favorites %s\n", me.forge.GetGoSrc())
- all := me.forge.Repos.SortByGoPath()
+ all := me.forge.Repos.SortByFullPath()
for all.Scan() {
repo := all.Next()
- if me.forge.Config.IsFavorite(repo.GoPath) {
+ if me.forge.Config.IsFavorite(repo.GetGoPath()) {
me.found.AppendUniqueGoPath(repo)
}
}
}
func findAll() {
- all := me.forge.Repos.SortByGoPath()
+ all := me.forge.Repos.SortByFullPath()
for all.Scan() {
repo := all.Next()
me.found.AppendUniqueGoPath(repo)
- if me.forge.Config.IsReadOnly(repo.GoPath) && !argv.FindReadOnly {
+ if me.forge.Config.IsReadOnly(repo.GetGoPath()) && !argv.FindReadOnly {
if repo.ReadOnly {
continue
}
- log.Info("todo: ConfigSave() readonly flag on repo is wrong", repo.GoPath)
+ log.Info("todo: ConfigSave() readonly flag on repo is wrong", repo.GetGoPath())
repo.ReadOnly = true
configSave = true
continue