From feab9412dffe5772048aad29893c4cb01d566387 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 21 Nov 2018 18:56:12 +0100 Subject: WIP identity in git --- bug/comment.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bug/comment.go') diff --git a/bug/comment.go b/bug/comment.go index 67936634..84d34299 100644 --- a/bug/comment.go +++ b/bug/comment.go @@ -1,13 +1,14 @@ package bug import ( + "github.com/MichaelMure/git-bug/identity" "github.com/MichaelMure/git-bug/util/git" "github.com/dustin/go-humanize" ) // Comment represent a comment in a Bug type Comment struct { - Author Person + Author identity.Interface Message string Files []git.Hash -- cgit From c235d89d36500e58e3bcadda94e9cab06023dd55 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 24 Feb 2019 23:05:03 +0100 Subject: commands: show the last modification time in "user" --- bug/comment.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bug/comment.go') diff --git a/bug/comment.go b/bug/comment.go index 84d34299..f7a6eada 100644 --- a/bug/comment.go +++ b/bug/comment.go @@ -3,6 +3,7 @@ package bug import ( "github.com/MichaelMure/git-bug/identity" "github.com/MichaelMure/git-bug/util/git" + "github.com/MichaelMure/git-bug/util/timestamp" "github.com/dustin/go-humanize" ) @@ -14,7 +15,7 @@ type Comment struct { // Creation time of the comment. // Should be used only for human display, never for ordering as we can't rely on it in a distributed system. - UnixTime Timestamp + UnixTime timestamp.Timestamp } // FormatTimeRel format the UnixTime of the comment for human consumption -- cgit