diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-11 22:04:16 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-11 22:14:46 +0200 |
commit | 3605887345792d2f981f971c6c4a2cb7f86a343e (patch) | |
tree | afd525b6e3a638e4c619a5a986fcb2811c297444 /bug/operation_pack.go | |
parent | 7b05983c19af4da70f2a9a5062913f4e4f5d5faa (diff) | |
download | git-bug-3605887345792d2f981f971c6c4a2cb7f86a343e.tar.gz git-bug-3605887345792d2f981f971c6c4a2cb7f86a343e.zip |
reorganize package for a more idomatic go
Diffstat (limited to 'bug/operation_pack.go')
-rw-r--r-- | bug/operation_pack.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bug/operation_pack.go b/bug/operation_pack.go index 307c01094..8568fa16e 100644 --- a/bug/operation_pack.go +++ b/bug/operation_pack.go @@ -5,7 +5,7 @@ import ( "encoding/gob" "github.com/MichaelMure/git-bug/repository" - "github.com/MichaelMure/git-bug/util" + "github.com/MichaelMure/git-bug/util/git" ) // OperationPack represent an ordered set of operation to apply @@ -18,7 +18,7 @@ type OperationPack struct { Operations []Operation // Private field so not serialized by gob - commitHash util.Hash + commitHash git.Hash } // ParseOperationPack will deserialize an OperationPack from raw bytes @@ -68,7 +68,7 @@ func (opp *OperationPack) IsValid() bool { // Write will serialize and store the OperationPack as a git blob and return // its hash -func (opp *OperationPack) Write(repo repository.Repo) (util.Hash, error) { +func (opp *OperationPack) Write(repo repository.Repo) (git.Hash, error) { data, err := opp.Serialize() if err != nil { |