summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.go4
-rw-r--r--repo.CacheLoad.go2
-rw-r--r--repo.Stats.go4
-rw-r--r--repo.common.go2
4 files changed, 6 insertions, 6 deletions
diff --git a/config.go b/config.go
index 251adfe..59e395e 100644
--- a/config.go
+++ b/config.go
@@ -69,8 +69,8 @@ func (pb *Repos) SaveValidate(fname string) error {
}
return err
}
- config.SavePB(pb)
- return nil
+ err = config.Save(pb)
+ return err
}
// todo: move this to Marshal() functions automatically in autogenpb?
diff --git a/repo.CacheLoad.go b/repo.CacheLoad.go
index 00ada9e..349f965 100644
--- a/repo.CacheLoad.go
+++ b/repo.CacheLoad.go
@@ -15,7 +15,7 @@ import (
)
func (pb *Repos) CacheLoad() error {
- err := config.CacheLoad(pb)
+ err := config.LoadCacheDir(pb)
if err != nil {
log.Info("couldn't load repos cache file:", pb.Filename)
panic("gitpb.CacheLoad() failed")
diff --git a/repo.Stats.go b/repo.Stats.go
index 2bad926..03e10d8 100644
--- a/repo.Stats.go
+++ b/repo.Stats.go
@@ -44,9 +44,9 @@ func (r *Repo) Stats() *Stats {
origin = NewStats()
origin.Filename = filepath.Join(r.FullPath, ".git/origin.pb")
if fileExists(origin.Filename) {
- config.LoadPB(origin)
+ config.ReLoad(origin)
} else {
- config.SavePB(origin)
+ config.Save(origin)
}
// add PB to the lookup map
diff --git a/repo.common.go b/repo.common.go
index 5e2f75c..a4c416a 100644
--- a/repo.common.go
+++ b/repo.common.go
@@ -12,7 +12,7 @@ import (
)
func (pb *Repos) SaveSafe() error {
- err := config.SavePB(pb)
+ err := config.Save(pb)
if err == nil {
log.Info(pb.Filename, "Saved with len", pb.Len())
} else {