diff options
Diffstat (limited to 'addRepo.go')
| -rw-r--r-- | addRepo.go | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -2,6 +2,7 @@ package main import ( "strings" + "time" "go.wit.com/lib/gadgets" "go.wit.com/lib/gui/repostatus" @@ -36,7 +37,6 @@ func (c *controlBox) addRepo(path string) { c.grid.NextRow() c.lastTag = gadgets.NewOneLiner(c.grid, "lastTag") - c.lastTag.SetText(path) c.grid.NextRow() c.dirtyL = gadgets.NewOneLiner(c.grid, "dirty") @@ -45,6 +45,15 @@ func (c *controlBox) addRepo(path string) { c.currentL = gadgets.NewOneLiner(c.grid, "current") c.grid.NextRow() + c.buildDate = gadgets.NewOneLiner(c.grid, "Build Date") + c.grid.NextRow() + + stamp := time.Now().UTC().Format("2006/01/02 15:04:05 UTC") + c.buildDate.SetText(stamp) + + c.tagDate = gadgets.NewOneLiner(c.grid, "git tag Date") + c.grid.NextRow() + c.status = repostatus.NewRepoStatusWindow(path) c.status.SetMainWorkingName("master") c.status.SetDevelWorkingName("devel") @@ -68,6 +77,9 @@ func (c *controlBox) addRepo(path string) { c.lastTag.SetText(lasttag) c.currentL.SetText(cbname + " " + cbversion) + tagDate := c.getDateStamp(lasttag) + c.tagDate.SetText(tagDate) + if c.status.Changed() { log.Warn("should scan here") } |
