remove lots of old stuff
This commit is contained in:
parent
7cc064dec0
commit
ca66a42fd1
|
@ -27,6 +27,10 @@ func (r *RepoRow) IsProtobuf() (bool, []string, error) {
|
|||
return r.pb.IsProtobuf()
|
||||
}
|
||||
|
||||
func (r *RepoRow) IsBinary() bool {
|
||||
return r.pb.GoInfo.GetGoBinary()
|
||||
}
|
||||
|
||||
// better name: use this
|
||||
// matches by path or by name
|
||||
func (r *RepoList) FindByName(name string) *RepoRow {
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
package repolist
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"go.wit.com/lib/gui/repostatus"
|
||||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
type Patch struct {
|
||||
|
@ -18,6 +13,7 @@ type Patch struct {
|
|||
|
||||
// move all this to repolist and gowit repos
|
||||
|
||||
/*
|
||||
func (repo *RepoRow) GetPatches(oldname string, newname string) (int, []*Patch) {
|
||||
var patchcount int
|
||||
patches := make([]*Patch, 0, 0)
|
||||
|
@ -113,3 +109,4 @@ func (r *RepoList) MakePatchset(setdir string) bool {
|
|||
}
|
||||
return true
|
||||
}
|
||||
*/
|
||||
|
|
|
@ -111,7 +111,7 @@ func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error) {
|
|||
})
|
||||
|
||||
newRepo.endBox.NewButton("commit all", func() {
|
||||
if !newRepo.Status.IsUserBranch() {
|
||||
if !newRepo.pb.IsUserBranch() {
|
||||
log.Log(REPOWARN, "can not commit on non user branch")
|
||||
return
|
||||
}
|
||||
|
|
26
scan.go
26
scan.go
|
@ -73,8 +73,8 @@ func (r *RepoRow) NewScan2(pb *gitpb.Repo) int {
|
|||
r.develVersion.SetLabel(pb.GetDevelVersion())
|
||||
r.userVersion.SetLabel(pb.GetUserVersion())
|
||||
r.gitState.SetLabel(r.Status.GitState())
|
||||
r.currentName.SetLabel(r.Status.GetCurrentBranchName())
|
||||
r.currentVersion.SetLabel(r.Status.GetCurrentBranchVersion())
|
||||
r.currentName.SetLabel(pb.GetCurrentBranchName())
|
||||
r.currentVersion.SetLabel(pb.GetCurrentBranchVersion())
|
||||
|
||||
if r.State() == "merge to main" {
|
||||
r.Hide()
|
||||
|
@ -85,28 +85,6 @@ func (r *RepoRow) NewScan2(pb *gitpb.Repo) int {
|
|||
r.Show()
|
||||
}
|
||||
|
||||
/*
|
||||
tags := []string{"%(objectname)", "%(creatordate)", "%(*authordate)", "%(refname)", "%(subject)"}
|
||||
format := strings.Join(tags, "_,,,_")
|
||||
cmd := []string{"git", "for-each-ref", "--sort=taggerdate", "--format", format}
|
||||
// log.Info("RUNNING:", strings.Join(cmd, " "))
|
||||
result := r.pb.RunQuiet(cmd)
|
||||
if result.Error != nil {
|
||||
log.Warn("git for-each-ref error:", result.Error)
|
||||
}
|
||||
for i, line := range result.Stdout {
|
||||
log.Info(i, line)
|
||||
}
|
||||
|
||||
if me.hideFunction == nil {
|
||||
// application didn't register a hide function
|
||||
// always show everything in that case
|
||||
r.Show()
|
||||
} else {
|
||||
me.hideFunction(r)
|
||||
}
|
||||
*/
|
||||
|
||||
// print out whatever changes have happened
|
||||
if c, ok := r.Status.Changed(); ok {
|
||||
log.Log(REPOWARN, "something finally changed")
|
||||
|
|
Loading…
Reference in New Issue