aboutsummaryrefslogtreecommitdiffstats
path: root/identity/bare.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-24 23:05:03 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:52:54 +0100
commitc235d89d36500e58e3bcadda94e9cab06023dd55 (patch)
treec2ee84316886cca3e439dbc12f64d6a06ddd7c18 /identity/bare.go
parent46beb4b886761ff69abe2ce45c2498a4fafe50d9 (diff)
downloadgit-bug-c235d89d36500e58e3bcadda94e9cab06023dd55.tar.gz
commands: show the last modification time in "user"
Diffstat (limited to 'identity/bare.go')
-rw-r--r--identity/bare.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/identity/bare.go b/identity/bare.go
index b6cbe491..6af794dd 100644
--- a/identity/bare.go
+++ b/identity/bare.go
@@ -9,6 +9,7 @@ import (
"github.com/MichaelMure/git-bug/repository"
"github.com/MichaelMure/git-bug/util/lamport"
"github.com/MichaelMure/git-bug/util/text"
+ "github.com/MichaelMure/git-bug/util/timestamp"
)
var _ Interface = &Bare{}
@@ -191,3 +192,13 @@ func (i *Bare) CommitAsNeeded(repo repository.ClockedRepo) error {
func (i *Bare) IsProtected() bool {
return false
}
+
+// LastModificationLamportTime return the Lamport time at which the last version of the identity became valid.
+func (i *Bare) LastModificationLamport() lamport.Time {
+ return 0
+}
+
+// LastModification return the timestamp at which the last version of the identity became valid.
+func (i *Bare) LastModification() timestamp.Timestamp {
+ return 0
+}