diff options
author | Michael Muré <batolettre@gmail.com> | 2021-02-20 15:48:44 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2021-03-14 18:41:22 +0100 |
commit | 214abe4dea1984086e45d1399538fb12aa010642 (patch) | |
tree | 6536f3ff7304e6b6abdd88728b391b726a471906 /entity/dag/operation.go | |
parent | f1d4a19af81fcc05ae9d90e018ff141f6521335a (diff) | |
download | git-bug-214abe4dea1984086e45d1399538fb12aa010642.tar.gz |
WIP operation with files
Diffstat (limited to 'entity/dag/operation.go')
-rw-r--r-- | entity/dag/operation.go | 9 |
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 +} |