summaryrefslogtreecommitdiff
path: root/findRepos.go
diff options
context:
space:
mode:
Diffstat (limited to 'findRepos.go')
-rw-r--r--findRepos.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/findRepos.go b/findRepos.go
index 18ddd03..3562802 100644
--- a/findRepos.go
+++ b/findRepos.go
@@ -35,9 +35,9 @@ func findRepos() bool {
}
func findPrivate() {
- repos := me.forge.Repos.SortByGoPath()
- for repos.Scan() {
- repo := repos.Next()
+ all := me.forge.Repos.SortByGoPath()
+ for all.Scan() {
+ repo := all.Next()
if me.forge.Config.IsPrivate(repo.GoPath) {
me.found.AppendUniqueGoPath(repo)
}
@@ -47,9 +47,9 @@ func findPrivate() {
// finds repos that are writable
func findMine() {
// log.Printf("get mine %s\n", me.forge.GetGoSrc())
- repos := me.forge.Repos.SortByGoPath()
- for repos.Scan() {
- repo := repos.Next()
+ all := me.forge.Repos.SortByGoPath()
+ for all.Scan() {
+ repo := all.Next()
if me.forge.Config.IsWritable(repo.GoPath) {
me.found.AppendUniqueGoPath(repo)
}
@@ -59,9 +59,9 @@ func findMine() {
// finds repos that are writable
func findFavorites() {
// log.Printf("get favorites %s\n", me.forge.GetGoSrc())
- repos := me.forge.Repos.SortByGoPath()
- for repos.Scan() {
- repo := repos.Next()
+ all := me.forge.Repos.SortByGoPath()
+ for all.Scan() {
+ repo := all.Next()
if me.forge.Config.IsFavorite(repo.GoPath) {
me.found.AppendUniqueGoPath(repo)
}
@@ -70,9 +70,9 @@ func findFavorites() {
func findAll() {
var configsave bool
- repos := me.forge.Repos.SortByGoPath()
- for repos.Scan() {
- repo := repos.Next()
+ all := me.forge.Repos.SortByGoPath()
+ for all.Scan() {
+ repo := all.Next()
if me.forge.Config.IsReadOnly(repo.GoPath) && !argv.FindReadOnly {
if repo.ReadOnly {
continue