summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tableBuild.go4
-rw-r--r--tableDefault.go3
2 files changed, 5 insertions, 2 deletions
diff --git a/tableBuild.go b/tableBuild.go
index 99f08cb..870a94e 100644
--- a/tableBuild.go
+++ b/tableBuild.go
@@ -10,8 +10,8 @@ import (
func (f *Forge) GetPackageVersion(repo *gitpb.Repo) string {
var s string
- s = repo.GetCurrentBranchVersion()
- if repo.IsDirty() {
+ s = repo.GetUserVersion() + "s"
+ if repo.CheckDirty() {
s += "-dirty"
}
return s
diff --git a/tableDefault.go b/tableDefault.go
index 39857c6..c3dba27 100644
--- a/tableDefault.go
+++ b/tableDefault.go
@@ -9,6 +9,9 @@ import (
)
// this is the default table layout for repos in forge
+func (f *Forge) PrintTable(pb *gitpb.Repos) {
+ f.PrintDefaultTB(pb)
+}
func (f *Forge) PrintDefaultTB(pb *gitpb.Repos) {
tablePB := f.makeDefaultTB(pb)