summaryrefslogtreecommitdiff
path: root/doCheckout.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-13 04:14:06 -0600
committerJeff Carr <[email protected]>2025-01-13 04:14:06 -0600
commitce6311893c359f43df14602f58bf241a76ff163c (patch)
tree11822c0fdcd19de2bdc0bad887442d512ba1d242 /doCheckout.go
parent96c9588c6b0f3cab63109de54111a4cbd9b8effb (diff)
standard names finally thanks to autogenpb
Diffstat (limited to 'doCheckout.go')
-rw-r--r--doCheckout.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/doCheckout.go b/doCheckout.go
index 1ea4b67..e7f5430 100644
--- a/doCheckout.go
+++ b/doCheckout.go
@@ -43,7 +43,9 @@ func doCheckDirtyAndConfigSave() {
dirty := repo.IsDirty()
if repo.CheckDirty() {
count += 1
- me.found.AppendUniqueGoPath(repo)
+ if me.found.AppendByGoPath(repo) {
+ log.Info("doCheckDirtyAndConfigSave() repo already existed", repo.GetGoPath())
+ }
if !dirty {
configSave = true
}
@@ -64,7 +66,8 @@ func IsEverythingOnDevel() bool {
repo := all.Next()
if repo.GetCurrentBranchName() != repo.GetDevelBranchName() {
// log.Info(repo.GetFullPath(), repo.GetCurrentBranchName(), repo.GetDevelBranchName())
- me.found.AppendUniqueGoPath(repo)
+ // add this to the list of "found" repos
+ me.found.AppendByGoPath(repo)
}
}
if len(me.found.Repos) == 0 {
@@ -79,7 +82,7 @@ func IsEverythingOnUser() bool {
for all.Scan() {
repo := all.Next()
if repo.GetCurrentBranchName() != repo.GetUserBranchName() {
- me.found.AppendUniqueGoPath(repo)
+ me.found.AppendByGoPath(repo)
}
}
if len(me.found.Repos) == 0 {