diff options
author | Michael Muré <batolettre@gmail.com> | 2019-02-24 23:05:03 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-03-01 22:52:54 +0100 |
commit | c235d89d36500e58e3bcadda94e9cab06023dd55 (patch) | |
tree | c2ee84316886cca3e439dbc12f64d6a06ddd7c18 /bug/timeline.go | |
parent | 46beb4b886761ff69abe2ce45c2498a4fafe50d9 (diff) | |
download | git-bug-c235d89d36500e58e3bcadda94e9cab06023dd55.tar.gz git-bug-c235d89d36500e58e3bcadda94e9cab06023dd55.zip |
commands: show the last modification time in "user"
Diffstat (limited to 'bug/timeline.go')
-rw-r--r-- | bug/timeline.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bug/timeline.go b/bug/timeline.go index 306ffa9e..d8ee2c6b 100644 --- a/bug/timeline.go +++ b/bug/timeline.go @@ -5,6 +5,7 @@ import ( "github.com/MichaelMure/git-bug/identity" "github.com/MichaelMure/git-bug/util/git" + "github.com/MichaelMure/git-bug/util/timestamp" ) type TimelineItem interface { @@ -19,7 +20,7 @@ type CommentHistoryStep struct { Author identity.Interface // The new message Message string - UnixTime Timestamp + UnixTime timestamp.Timestamp } // CommentTimelineItem is a TimelineItem that holds a Comment and its edition history @@ -28,8 +29,8 @@ type CommentTimelineItem struct { Author identity.Interface Message string Files []git.Hash - CreatedAt Timestamp - LastEdit Timestamp + CreatedAt timestamp.Timestamp + LastEdit timestamp.Timestamp History []CommentHistoryStep } |