diff options
| author | Jeff Carr <[email protected]> | 2024-02-24 11:56:02 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-24 11:56:02 -0600 |
| commit | b354d7dd275042114307a896f088e869d875c68a (patch) | |
| tree | 7b995c4f451d805bf0c8dc46c85af23e15e0c0a9 /common.go | |
| parent | cec5e7f3b4900bdb8486d2d77c2ba6493ef53316 (diff) | |
try to show actual changes
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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() +} |
