summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'common.go')
-rw-r--r--common.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/common.go b/common.go
index 8cfed10..e57409c 100644
--- a/common.go
+++ b/common.go
@@ -24,6 +24,7 @@ func (rs *RepoStatus) getChanges() string {
}
func (rs *RepoStatus) NoteChange(s string) {
+ log.Log(REPOWARN, "NoteChange() got", rs.String(), s)
rs.changed = true
rs.changes += s + "\n"
}
@@ -191,3 +192,12 @@ func (rs *RepoStatus) SetPrivate(b bool) {
rs.private.SetText("false")
}
}
+
+// returns a name for human consuption only
+// todo: implement nicknames
+func (rs *RepoStatus) Name() string {
+ if rs.IsGoLang() {
+ return rs.GoPath()
+ }
+ return rs.Path()
+}