summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-24 11:56:02 -0600
committerJeff Carr <[email protected]>2024-02-24 11:56:02 -0600
commitb354d7dd275042114307a896f088e869d875c68a (patch)
tree7b995c4f451d805bf0c8dc46c85af23e15e0c0a9 /common.go
parentcec5e7f3b4900bdb8486d2d77c2ba6493ef53316 (diff)
try to show actual changes
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()
+}