aboutsummaryrefslogtreecommitdiffstats
path: root/bug/person.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-15 20:30:31 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-15 20:30:31 +0200
commitbfb5e96aab9e78f05942151060cc92fdaa32bedd (patch)
treeddac4640aa1b43e13dc466cad6bbaed49f172fd9 /bug/person.go
parent6b732d4535fc31e37485c7b496f2bbe0c854f661 (diff)
downloadgit-bug-bfb5e96aab9e78f05942151060cc92fdaa32bedd.tar.gz
commands: git bug comment now show the comments of a bug
Diffstat (limited to 'bug/person.go')
-rw-r--r--bug/person.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bug/person.go b/bug/person.go
index 9fa86804..ff4d4a70 100644
--- a/bug/person.go
+++ b/bug/person.go
@@ -63,3 +63,7 @@ func (p Person) Validate() error {
return nil
}
+
+func (p Person) String() string {
+ return fmt.Sprintf("%s <%s>", p.Name, p.Email)
+}