aboutsummaryrefslogtreecommitdiffstats
path: root/entity/dag/operation.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-04-04 11:23:04 +0200
committerMichael Muré <batolettre@gmail.com>2021-04-04 11:23:04 +0200
commitcb9b06551ddc1fae33046733f79ede20f8d09f9a (patch)
tree7503c96518d87519dd4ba09998b94e6b3552b1c0 /entity/dag/operation.go
parentaa0449a3eafa42c8c0d44bbdc2b79c5f47bd2d32 (diff)
downloadgit-bug-cb9b06551ddc1fae33046733f79ede20f8d09f9a.tar.gz
entity: more comments
Diffstat (limited to 'entity/dag/operation.go')
-rw-r--r--entity/dag/operation.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/entity/dag/operation.go b/entity/dag/operation.go
index 1bfb3d3d..a320859f 100644
--- a/entity/dag/operation.go
+++ b/entity/dag/operation.go
@@ -40,5 +40,9 @@ type OperationWithFiles interface {
Operation
// GetFiles return the files needed by this operation
+ // This implies that the Operation maintain and store internally the references to those files. This is how
+ // this information is read later, when loading from storage.
+ // For example, an operation that has a text value referencing some files would maintain a mapping (text ref -->
+ // hash).
GetFiles() []repository.Hash
}