summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--globalTestingOptions.go1
-rw-r--r--repolist.go6
-rw-r--r--scan.go4
-rw-r--r--structs.go15
4 files changed, 9 insertions, 17 deletions
diff --git a/globalTestingOptions.go b/globalTestingOptions.go
index 4804e64..258ff23 100644
--- a/globalTestingOptions.go
+++ b/globalTestingOptions.go
@@ -39,7 +39,6 @@ func attemptAutoRebuild() {
homeDir := me.userHomePwd.String()
fullpath := filepath.Join(homeDir, "go")
- // fullpath := "/home/jcarr/go/"
quickCmd(fullpath, []string{"mkdir", "-p", "src/go.wit.com/apps/"})
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/apps/")
diff --git a/repolist.go b/repolist.go
index 8cbe85e..09dd8fb 100644
--- a/repolist.go
+++ b/repolist.go
@@ -120,10 +120,8 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri
}
log.Warn("status window exists. trying TestDraw() here")
newRepo.status.Toggle()
- /// newRepo.status.Update()
})
- // newRepo.status = repostatus.New(me.myGui, newRepo.path)
newRepo.status = repostatus.NewRepoStatusWindow(newRepo.path)
newRepo.hidden = false
newRepo.status.SetMainWorkingName(master)
@@ -185,12 +183,14 @@ func repolistWindow() {
addRepo(reposgrid, path, mbranch, dbranch, ubranch)
}
+ /*
for i, path := range repostatus.ListGitDirectories() {
// log.Info("addRepo()", i, path)
- tmp := strings.TrimPrefix(path, "/home/jcarr/go/src/")
+ tmp := strings.TrimPrefix(path, me.goSrcPwd.String())
log.Info("addRepo()", i, tmp)
addRepo(reposgrid, tmp, "master", "master", "master")
}
+ */
reposgroup.NewButton("merge all user to devel", func() {
reposwin.Disable()
diff --git a/scan.go b/scan.go
index 1549815..e0c9761 100644
--- a/scan.go
+++ b/scan.go
@@ -3,6 +3,7 @@ package main
import (
"fmt"
+ "os/user"
"time"
"go.wit.com/log"
@@ -38,7 +39,8 @@ func (r *repo) newScan() bool {
uname := r.status.GetUserBranchName()
uver := r.status.GetUserVersion()
- if uname != "jcarr" {
+ usr, _ := user.Current()
+ if uname != usr.Username {
uver = uver + " (" + uname + ")"
}
r.userVersion.SetLabel(uver)
diff --git a/structs.go b/structs.go
index 3c6acf3..d093065 100644
--- a/structs.go
+++ b/structs.go
@@ -67,12 +67,6 @@ type autoType struct {
deleteGoSrcPkgB *gui.Node
}
-/*
-var cmds *gui.Node
-var doit *gui.Node
-var dryrun *gui.Node
-*/
-
type repo struct {
hidden bool
path string
@@ -80,18 +74,15 @@ type repo struct {
lasttag string
pLabel *gui.Node // path label
- // bLabel *gui.Node // branch label
+
lastTag *gui.Node // last tagged version label
vLabel *gui.Node // version label
dirtyLabel *gui.Node // git state (dirty or not?)
goSumStatus *gui.Node // what is the state of the go.sum file
- // masterName *gui.Node // the master branch name
masterVersion *gui.Node // the master branch version
- // develName *gui.Node // the devel branch name
- develVersion *gui.Node // the devel branch version
- // userName *gui.Node // the jcarr branch name
- userVersion *gui.Node // the jcarr branch version
+ develVersion *gui.Node // the devel branch version
+ userVersion *gui.Node // the user branch version
statusButton *gui.Node // opens up the status window