aboutsummaryrefslogtreecommitdiff
path: root/refstore/files/transaction_operation.go
blob: bb24c5a25325fa98bd0295bcf84c2bffa56bd5f7 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package files

import "codeberg.org/lindenii/furgit/objectid"

type txOp struct {
	name      string
	kind      txKind
	newID     objectid.ObjectID
	oldID     objectid.ObjectID
	newTarget string
	oldTarget string
}

type preparedTxOp struct {
	op     txOp
	target resolvedWriteTarget
}

type resolvedWriteTarget struct {
	name string
	loc  refPath
	ref  directRef
}