aboutsummaryrefslogtreecommitdiffstats
path: root/identity/version.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-07-01 19:39:02 +0200
committerMichael Muré <batolettre@gmail.com>2020-07-01 19:39:02 +0200
commit3cf31fc4049fefc82db0a3d2018b5d98ab77c5d7 (patch)
treec77a29e1f35fefa5040454976c6edcf86e7678bc /identity/version.go
parent33d510ac3999b3d8fa7a4652dc44a21c713f97de (diff)
downloadgit-bug-3cf31fc4049fefc82db0a3d2018b5d98ab77c5d7.tar.gz
repository: merge git.Hash in for one less /util package
Diffstat (limited to 'identity/version.go')
-rw-r--r--identity/version.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/identity/version.go b/identity/version.go
index 2359bd11..8b6a7c24 100644
--- a/identity/version.go
+++ b/identity/version.go
@@ -6,11 +6,11 @@ import (
"fmt"
"strings"
+ "github.com/pkg/errors"
+
"github.com/MichaelMure/git-bug/repository"
- "github.com/MichaelMure/git-bug/util/git"
"github.com/MichaelMure/git-bug/util/lamport"
"github.com/MichaelMure/git-bug/util/text"
- "github.com/pkg/errors"
)
const formatVersion = 1
@@ -45,7 +45,7 @@ type Version struct {
metadata map[string]string
// Not serialized
- commitHash git.Hash
+ commitHash repository.Hash
}
type VersionJSON struct {
@@ -174,7 +174,7 @@ func (v *Version) Validate() error {
// Write will serialize and store the Version as a git blob and return
// its hash
-func (v *Version) Write(repo repository.Repo) (git.Hash, error) {
+func (v *Version) Write(repo repository.Repo) (repository.Hash, error) {
// make sure we don't write invalid data
err := v.Validate()
if err != nil {