aboutsummaryrefslogtreecommitdiffstats
path: root/entity/dag/operation.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-02-20 15:48:44 +0100
committerMichael Muré <batolettre@gmail.com>2021-03-14 18:41:22 +0100
commit214abe4dea1984086e45d1399538fb12aa010642 (patch)
tree6536f3ff7304e6b6abdd88728b391b726a471906 /entity/dag/operation.go
parentf1d4a19af81fcc05ae9d90e018ff141f6521335a (diff)
downloadgit-bug-214abe4dea1984086e45d1399538fb12aa010642.tar.gz
WIP operation with files
Diffstat (limited to 'entity/dag/operation.go')
-rw-r--r--entity/dag/operation.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/entity/dag/operation.go b/entity/dag/operation.go
index 94974a82..1bfb3d3d 100644
--- a/entity/dag/operation.go
+++ b/entity/dag/operation.go
@@ -3,6 +3,7 @@ package dag
import (
"github.com/MichaelMure/git-bug/entity"
"github.com/MichaelMure/git-bug/identity"
+ "github.com/MichaelMure/git-bug/repository"
)
// Operation is a piece of data defining a change to reflect on the state of an Entity.
@@ -33,3 +34,11 @@ type Operation interface {
// Author returns the author of this operation
Author() identity.Interface
}
+
+// OperationWithFiles is an extended Operation that has files dependency, stored in git.
+type OperationWithFiles interface {
+ Operation
+
+ // GetFiles return the files needed by this operation
+ GetFiles() []repository.Hash
+}