rm junk
This commit is contained in:
parent
7081a04d58
commit
9a32a7fe0b
4
Makefile
4
Makefile
|
@ -37,10 +37,10 @@ plugin:
|
|||
andlabs: clean install
|
||||
forge --gui andlabs --gui-verbose
|
||||
|
||||
gocui: install
|
||||
CUI: install
|
||||
forge --gui gocui
|
||||
|
||||
gocui-verbose: install
|
||||
CUI-verbose: install
|
||||
forge --gui gocui --gui-verbose >/tmp/forge.log 2>&1
|
||||
|
||||
goimports:
|
||||
|
|
42
doDirty.go
42
doDirty.go
|
@ -14,45 +14,3 @@ func doDirty() {
|
|||
me.forge.PrintHumanTable(found)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
func straightCheckDirty() int {
|
||||
var count int
|
||||
// var total int
|
||||
// now := time.Now()
|
||||
for repo := range me.forge.Repos.IterAll() {
|
||||
// total += 1
|
||||
if repo.IsDirty() {
|
||||
count += 1
|
||||
}
|
||||
}
|
||||
// log.Printf("rill dirty check (%d dirty repos) (%d total repos) took:%s\n", count, total, shell.FormatDuration(time.Since(now)))
|
||||
return count
|
||||
}
|
||||
|
||||
func doCheckDirty(repo *gitpb.Repo) error {
|
||||
repo.CheckDirty()
|
||||
// reset these in here for now
|
||||
if repo.GetTargetVersion() != "" {
|
||||
repo.TargetVersion = ""
|
||||
me.forge.SetConfigSave(true)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// recheck every repo's dirty state according to 'git'
|
||||
func doCheckDirtyAndConfigSave() {
|
||||
start := straightCheckDirty()
|
||||
|
||||
now := time.Now()
|
||||
me.forge.RillFuncError(doCheckDirty)
|
||||
end := straightCheckDirty()
|
||||
log.Printf("dirty check (%d dirty repos) (%d total repos) took:%s\n", end, me.forge.Repos.Len(), shell.FormatDuration(time.Since(now)))
|
||||
|
||||
if start != end {
|
||||
// todo: use internal forgepb configsave flag. should work?
|
||||
me.forge.SetConfigSave(true)
|
||||
me.forge.ConfigSave()
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
|
7
doGui.go
7
doGui.go
|
@ -156,6 +156,13 @@ func drawWindow(win *gadgets.GenericWindow) {
|
|||
|
||||
var patchesWin *stdPatchTableWin
|
||||
gridM.NewButton("Pending patches", func() {
|
||||
/*
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
log.Warn("PANIC ecovered in NewButton()", r)
|
||||
}
|
||||
}()
|
||||
*/
|
||||
if patchesWin != nil {
|
||||
patchesWin.Toggle()
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue