aboutsummaryrefslogtreecommitdiff
path: root/refstore/files/transaction_direct_ref.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-07 18:09:20 +0800
committerGravatar Runxi Yu2026-03-07 18:17:54 +0800
commite667c3c52a535ee67fe895bb0240fbad6e920087 (patch)
tree0815f7cc9b2c4a06d00722bce4c3ac57c515288b /refstore/files/transaction_direct_ref.go
parentreceivepack: Connect protocol with service (diff)
refstore/files: Accept timeout instead of reading from config
And split things up again.
Diffstat (limited to 'refstore/files/transaction_direct_ref.go')
-rw-r--r--refstore/files/transaction_direct_ref.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/refstore/files/transaction_direct_ref.go b/refstore/files/transaction_direct_ref.go
new file mode 100644
index 00000000..970e7b6a
--- /dev/null
+++ b/refstore/files/transaction_direct_ref.go
@@ -0,0 +1,20 @@
+package files
+
+import "codeberg.org/lindenii/furgit/objectid"
+
+type directKind uint8
+
+const (
+ directMissing directKind = iota
+ directDetached
+ directSymbolic
+)
+
+type directRef struct {
+ kind directKind
+ name string
+ id objectid.ObjectID
+ target string
+ isLoose bool
+ isPacked bool
+}