summaryrefslogtreecommitdiff
path: root/newRepo.go
diff options
context:
space:
mode:
Diffstat (limited to 'newRepo.go')
-rw-r--r--newRepo.go39
1 files changed, 1 insertions, 38 deletions
diff --git a/newRepo.go b/newRepo.go
index f670edc..8a96e34 100644
--- a/newRepo.go
+++ b/newRepo.go
@@ -60,43 +60,6 @@ func (r *RepoRow) Show2() {
r.hidden = false
}
-/*
-func (r *RepoList) NewRepo(path string) (*RepoRow, error) {
- test, ok := r.allrepos[path]
- if ok {
- // this repo already exists
- return test, nil
- }
-
- status, err := repostatus.New(path)
- if err != nil {
- return nil, err
- }
- newRepo := new(RepoRow)
- newRepo.Status = status
- newRepo.Status.InitOk = false
-
- newRepo.pLabel = r.reposgrid.NewLabel(path).SetProgName("path")
- newRepo.hidden = false
-
- r.allrepos[path] = newRepo
- newRepo.NewScan()
-
- switch r.viewName {
- case "autotypist":
- r.makeAutotypistView(newRepo)
- case "guireleaser":
- r.makeGuireleaserView(newRepo)
- default:
- r.makeAutotypistView(newRepo)
- }
- r.reposgrid.NextRow()
- newRepo.Status.InitOk = true
- newRepo.Hide()
- return newRepo, nil
-}
-*/
-
// adds a gui row to the table based off the repo protobuf
func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error) {
test, ok := r.allrepos[pb.GetGoPath()]
@@ -130,7 +93,7 @@ func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error) {
}
r.reposgrid.NextRow()
newRepo.Status.InitOk = true
- newRepo.Hide()
+ // newRepo.Hide()
return newRepo, nil
}