diff options
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() +} |
