aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-25 14:31:16 +0000
committerGravatar Runxi Yu2026-03-25 14:31:16 +0000
commit48ff647cf4a8bb8f23fcd6b8616f56a8ef72b980 (patch)
treeae199c38042adaa544d5f7d31351661d5831381e
parent*: objectstore -> object/store (diff)
signatureNo signature
*: refstore -> ref/store
-rw-r--r--receivepack/advertise.go2
-rw-r--r--receivepack/hook.go2
-rw-r--r--receivepack/hooks/reject_force_push.go2
-rw-r--r--receivepack/options.go2
-rw-r--r--receivepack/service/apply.go2
-rw-r--r--receivepack/service/hook.go2
-rw-r--r--receivepack/service/options.go2
-rw-r--r--ref/store/batch.go (renamed from refstore/batch.go)0
-rw-r--r--ref/store/batch_store.go (renamed from refstore/batch_store.go)0
-rw-r--r--ref/store/chain/chain.go (renamed from refstore/chain/chain.go)2
-rw-r--r--ref/store/chain/close.go (renamed from refstore/chain/close.go)0
-rw-r--r--ref/store/chain/list.go (renamed from refstore/chain/list.go)0
-rw-r--r--ref/store/chain/new.go (renamed from refstore/chain/new.go)2
-rw-r--r--ref/store/chain/resolve.go (renamed from refstore/chain/resolve.go)2
-rw-r--r--ref/store/doc.go (renamed from refstore/doc.go)0
-rw-r--r--ref/store/errors.go (renamed from refstore/errors.go)0
-rw-r--r--ref/store/files/batch.go (renamed from refstore/files/batch.go)2
-rw-r--r--ref/store/files/batch_abort.go (renamed from refstore/files/batch_abort.go)0
-rw-r--r--ref/store/files/batch_apply.go (renamed from refstore/files/batch_apply.go)2
-rw-r--r--ref/store/files/batch_begin.go (renamed from refstore/files/batch_begin.go)2
-rw-r--r--ref/store/files/batch_queue.go (renamed from refstore/files/batch_queue.go)0
-rw-r--r--ref/store/files/batch_queue_ops.go (renamed from refstore/files/batch_queue_ops.go)0
-rw-r--r--ref/store/files/batch_rejection.go (renamed from refstore/files/batch_rejection.go)2
-rw-r--r--ref/store/files/batch_result_error.go (renamed from refstore/files/batch_result_error.go)0
-rw-r--r--ref/store/files/batch_test.go (renamed from refstore/files/batch_test.go)2
-rw-r--r--ref/store/files/broken_ref_error.go (renamed from refstore/files/broken_ref_error.go)0
-rw-r--r--ref/store/files/close.go (renamed from refstore/files/close.go)0
-rw-r--r--ref/store/files/helpers_test.go (renamed from refstore/files/helpers_test.go)2
-rw-r--r--ref/store/files/new.go (renamed from refstore/files/new.go)0
-rw-r--r--ref/store/files/packed_delete_test.go (renamed from refstore/files/packed_delete_test.go)2
-rw-r--r--ref/store/files/packed_parse.go (renamed from refstore/files/packed_parse.go)0
-rw-r--r--ref/store/files/packed_read.go (renamed from refstore/files/packed_read.go)0
-rw-r--r--ref/store/files/packed_refs.go (renamed from refstore/files/packed_refs.go)0
-rw-r--r--ref/store/files/read_list.go (renamed from refstore/files/read_list.go)2
-rw-r--r--ref/store/files/read_list_collect.go (renamed from refstore/files/read_list_collect.go)0
-rw-r--r--ref/store/files/read_loose.go (renamed from refstore/files/read_loose.go)2
-rw-r--r--ref/store/files/read_resolve.go (renamed from refstore/files/read_resolve.go)2
-rw-r--r--ref/store/files/read_resolve_fully.go (renamed from refstore/files/read_resolve_fully.go)0
-rw-r--r--ref/store/files/resolve_list_test.go (renamed from refstore/files/resolve_list_test.go)0
-rw-r--r--ref/store/files/root_for.go (renamed from refstore/files/root_for.go)0
-rw-r--r--ref/store/files/root_kind.go (renamed from refstore/files/root_kind.go)0
-rw-r--r--ref/store/files/root_loose_path.go (renamed from refstore/files/root_loose_path.go)0
-rw-r--r--ref/store/files/root_open_common.go (renamed from refstore/files/root_open_common.go)0
-rw-r--r--ref/store/files/store.go (renamed from refstore/files/store.go)2
-rw-r--r--ref/store/files/transaction.go (renamed from refstore/files/transaction.go)2
-rw-r--r--ref/store/files/transaction_abort.go (renamed from refstore/files/transaction_abort.go)0
-rw-r--r--ref/store/files/transaction_begin.go (renamed from refstore/files/transaction_begin.go)2
-rw-r--r--ref/store/files/transaction_commit.go (renamed from refstore/files/transaction_commit.go)0
-rw-r--r--ref/store/files/transaction_dirs_test.go (renamed from refstore/files/transaction_dirs_test.go)0
-rw-r--r--ref/store/files/transaction_names_test.go (renamed from refstore/files/transaction_names_test.go)2
-rw-r--r--ref/store/files/transaction_pseudoref_test.go (renamed from refstore/files/transaction_pseudoref_test.go)2
-rw-r--r--ref/store/files/transaction_queue.go (renamed from refstore/files/transaction_queue.go)0
-rw-r--r--ref/store/files/transaction_queue_ops.go (renamed from refstore/files/transaction_queue_ops.go)0
-rw-r--r--ref/store/files/transaction_symbolic_test.go (renamed from refstore/files/transaction_symbolic_test.go)2
-rw-r--r--ref/store/files/transaction_update_test.go (renamed from refstore/files/transaction_update_test.go)2
-rw-r--r--ref/store/files/trim.go (renamed from refstore/files/trim.go)0
-rw-r--r--ref/store/files/update_cleanup.go (renamed from refstore/files/update_cleanup.go)0
-rw-r--r--ref/store/files/update_cleanup_parents.go (renamed from refstore/files/update_cleanup_parents.go)0
-rw-r--r--ref/store/files/update_commit.go (renamed from refstore/files/update_commit.go)0
-rw-r--r--ref/store/files/update_commit_delete.go (renamed from refstore/files/update_commit_delete.go)0
-rw-r--r--ref/store/files/update_dir_tree.go (renamed from refstore/files/update_dir_tree.go)0
-rw-r--r--ref/store/files/update_direct_read.go (renamed from refstore/files/update_direct_read.go)2
-rw-r--r--ref/store/files/update_direct_ref.go (renamed from refstore/files/update_direct_ref.go)0
-rw-r--r--ref/store/files/update_error.go (renamed from refstore/files/update_error.go)0
-rw-r--r--ref/store/files/update_executor.go (renamed from refstore/files/update_executor.go)0
-rw-r--r--ref/store/files/update_kind.go (renamed from refstore/files/update_kind.go)0
-rw-r--r--ref/store/files/update_lock.go (renamed from refstore/files/update_lock.go)0
-rw-r--r--ref/store/files/update_lock_packed.go (renamed from refstore/files/update_lock_packed.go)0
-rw-r--r--ref/store/files/update_operation_prepared.go (renamed from refstore/files/update_operation_prepared.go)0
-rw-r--r--ref/store/files/update_operation_queue.go (renamed from refstore/files/update_operation_queue.go)0
-rw-r--r--ref/store/files/update_path.go (renamed from refstore/files/update_path.go)0
-rw-r--r--ref/store/files/update_prepare.go (renamed from refstore/files/update_prepare.go)0
-rw-r--r--ref/store/files/update_prepare_lock.go (renamed from refstore/files/update_prepare_lock.go)0
-rw-r--r--ref/store/files/update_prepare_resolve.go (renamed from refstore/files/update_prepare_resolve.go)2
-rw-r--r--ref/store/files/update_prepare_verify.go (renamed from refstore/files/update_prepare_verify.go)0
-rw-r--r--ref/store/files/update_resolve_target.go (renamed from refstore/files/update_resolve_target.go)0
-rw-r--r--ref/store/files/update_resolve_target_ordinary.go (renamed from refstore/files/update_resolve_target_ordinary.go)2
-rw-r--r--ref/store/files/update_target_resolved.go (renamed from refstore/files/update_target_resolved.go)0
-rw-r--r--ref/store/files/update_validate.go (renamed from refstore/files/update_validate.go)2
-rw-r--r--ref/store/files/update_verify_current.go (renamed from refstore/files/update_verify_current.go)2
-rw-r--r--ref/store/files/update_verify_refnames.go (renamed from refstore/files/update_verify_refnames.go)2
-rw-r--r--ref/store/files/update_visible_names.go (renamed from refstore/files/update_visible_names.go)0
-rw-r--r--ref/store/files/update_write_loose.go (renamed from refstore/files/update_write_loose.go)0
-rw-r--r--ref/store/files/update_write_packed_refs.go (renamed from refstore/files/update_write_packed_refs.go)0
-rw-r--r--ref/store/files/worktree_test.go (renamed from refstore/files/worktree_test.go)2
-rw-r--r--ref/store/read_write_store.go (renamed from refstore/read_write_store.go)0
-rw-r--r--ref/store/reading.go (renamed from refstore/reading.go)0
-rw-r--r--ref/store/transaction.go (renamed from refstore/transaction.go)0
-rw-r--r--ref/store/transactional_store.go (renamed from refstore/transactional_store.go)0
-rw-r--r--ref/store/update_errors.go (renamed from refstore/update_errors.go)0
-rw-r--r--repository/open.go2
-rw-r--r--repository/refs.go2
-rw-r--r--repository/repository.go2
93 files changed, 37 insertions, 37 deletions
diff --git a/receivepack/advertise.go b/receivepack/advertise.go
index 5cac5524..772fe680 100644
--- a/receivepack/advertise.go
+++ b/receivepack/advertise.go
@@ -5,7 +5,7 @@ import (
common "codeberg.org/lindenii/furgit/protocol/v0v1/server"
"codeberg.org/lindenii/furgit/ref"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func advertisedRefs(opts Options) ([]common.AdvertisedRef, error) {
diff --git a/receivepack/hook.go b/receivepack/hook.go
index 5a9bcb8b..e4dd4de4 100644
--- a/receivepack/hook.go
+++ b/receivepack/hook.go
@@ -7,7 +7,7 @@ import (
objectid "codeberg.org/lindenii/furgit/object/id"
"codeberg.org/lindenii/furgit/object/store"
"codeberg.org/lindenii/furgit/receivepack/service"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
type HookIO struct {
diff --git a/receivepack/hooks/reject_force_push.go b/receivepack/hooks/reject_force_push.go
index 9d780078..5c7a8462 100644
--- a/receivepack/hooks/reject_force_push.go
+++ b/receivepack/hooks/reject_force_push.go
@@ -9,7 +9,7 @@ import (
objectid "codeberg.org/lindenii/furgit/object/id"
objectmix "codeberg.org/lindenii/furgit/object/store/mix"
receivepack "codeberg.org/lindenii/furgit/receivepack"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
// RejectForcePush rejects updates whose new value is not a fast-forward of the
diff --git a/receivepack/options.go b/receivepack/options.go
index 8e7ac747..0d01043a 100644
--- a/receivepack/options.go
+++ b/receivepack/options.go
@@ -5,7 +5,7 @@ import (
objectid "codeberg.org/lindenii/furgit/object/id"
"codeberg.org/lindenii/furgit/object/store"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
// Options configures one receive-pack invocation.
diff --git a/receivepack/service/apply.go b/receivepack/service/apply.go
index 137af64a..9c1900a4 100644
--- a/receivepack/service/apply.go
+++ b/receivepack/service/apply.go
@@ -3,7 +3,7 @@ package service
import (
"codeberg.org/lindenii/furgit/internal/utils"
objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func (service *Service) applyAtomic(result *Result, commands []Command) error {
diff --git a/receivepack/service/hook.go b/receivepack/service/hook.go
index 09120ced..f0624233 100644
--- a/receivepack/service/hook.go
+++ b/receivepack/service/hook.go
@@ -6,7 +6,7 @@ import (
objectid "codeberg.org/lindenii/furgit/object/id"
"codeberg.org/lindenii/furgit/object/store"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
type HookIO struct {
diff --git a/receivepack/service/options.go b/receivepack/service/options.go
index a2c8c510..9afcf521 100644
--- a/receivepack/service/options.go
+++ b/receivepack/service/options.go
@@ -7,7 +7,7 @@ import (
objectid "codeberg.org/lindenii/furgit/object/id"
"codeberg.org/lindenii/furgit/object/store"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
type PromotedObjectPermissions struct {
diff --git a/refstore/batch.go b/ref/store/batch.go
index 6a877a2c..6a877a2c 100644
--- a/refstore/batch.go
+++ b/ref/store/batch.go
diff --git a/refstore/batch_store.go b/ref/store/batch_store.go
index 3ccfdd10..3ccfdd10 100644
--- a/refstore/batch_store.go
+++ b/ref/store/batch_store.go
diff --git a/refstore/chain/chain.go b/ref/store/chain/chain.go
index 0feb97c3..6a4a0eed 100644
--- a/refstore/chain/chain.go
+++ b/ref/store/chain/chain.go
@@ -2,7 +2,7 @@
// of backends.
package chain
-import "codeberg.org/lindenii/furgit/refstore"
+import "codeberg.org/lindenii/furgit/ref/store"
// Chain queries multiple reference stores in order.
//
diff --git a/refstore/chain/close.go b/ref/store/chain/close.go
index 6bd74565..6bd74565 100644
--- a/refstore/chain/close.go
+++ b/ref/store/chain/close.go
diff --git a/refstore/chain/list.go b/ref/store/chain/list.go
index c577ca85..c577ca85 100644
--- a/refstore/chain/list.go
+++ b/ref/store/chain/list.go
diff --git a/refstore/chain/new.go b/ref/store/chain/new.go
index f8bdcb13..dc8c0779 100644
--- a/refstore/chain/new.go
+++ b/ref/store/chain/new.go
@@ -1,6 +1,6 @@
package chain
-import "codeberg.org/lindenii/furgit/refstore"
+import "codeberg.org/lindenii/furgit/ref/store"
// New creates an ordered reference store chain.
//
diff --git a/refstore/chain/resolve.go b/ref/store/chain/resolve.go
index 97dee24b..f69d51ef 100644
--- a/refstore/chain/resolve.go
+++ b/ref/store/chain/resolve.go
@@ -5,7 +5,7 @@ import (
"fmt"
"codeberg.org/lindenii/furgit/ref"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
// Resolve resolves a reference from the first backend that has it.
diff --git a/refstore/doc.go b/ref/store/doc.go
index 3d6f3908..3d6f3908 100644
--- a/refstore/doc.go
+++ b/ref/store/doc.go
diff --git a/refstore/errors.go b/ref/store/errors.go
index 45583440..45583440 100644
--- a/refstore/errors.go
+++ b/ref/store/errors.go
diff --git a/refstore/files/batch.go b/ref/store/files/batch.go
index 43eb1a08..8f514422 100644
--- a/refstore/files/batch.go
+++ b/ref/store/files/batch.go
@@ -1,6 +1,6 @@
package files
-import "codeberg.org/lindenii/furgit/refstore"
+import "codeberg.org/lindenii/furgit/ref/store"
type Batch struct {
store *Store
diff --git a/refstore/files/batch_abort.go b/ref/store/files/batch_abort.go
index 0cbd1651..0cbd1651 100644
--- a/refstore/files/batch_abort.go
+++ b/ref/store/files/batch_abort.go
diff --git a/refstore/files/batch_apply.go b/ref/store/files/batch_apply.go
index 5746aef5..d6fb1a4d 100644
--- a/refstore/files/batch_apply.go
+++ b/ref/store/files/batch_apply.go
@@ -1,6 +1,6 @@
package files
-import "codeberg.org/lindenii/furgit/refstore"
+import "codeberg.org/lindenii/furgit/ref/store"
func (batch *Batch) Apply() ([]refstore.BatchResult, error) {
results := make([]refstore.BatchResult, len(batch.ops))
diff --git a/refstore/files/batch_begin.go b/ref/store/files/batch_begin.go
index 06459b2c..9c2b98d2 100644
--- a/refstore/files/batch_begin.go
+++ b/ref/store/files/batch_begin.go
@@ -1,6 +1,6 @@
package files
-import "codeberg.org/lindenii/furgit/refstore"
+import "codeberg.org/lindenii/furgit/ref/store"
// BeginBatch creates one new files batch.
//
diff --git a/refstore/files/batch_queue.go b/ref/store/files/batch_queue.go
index 5937c6fb..5937c6fb 100644
--- a/refstore/files/batch_queue.go
+++ b/ref/store/files/batch_queue.go
diff --git a/refstore/files/batch_queue_ops.go b/ref/store/files/batch_queue_ops.go
index 7434b0c3..7434b0c3 100644
--- a/refstore/files/batch_queue_ops.go
+++ b/ref/store/files/batch_queue_ops.go
diff --git a/refstore/files/batch_rejection.go b/ref/store/files/batch_rejection.go
index 3f3569d6..a1f8e39c 100644
--- a/refstore/files/batch_rejection.go
+++ b/ref/store/files/batch_rejection.go
@@ -3,7 +3,7 @@ package files
import (
"errors"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func isBatchRejected(err error) bool {
diff --git a/refstore/files/batch_result_error.go b/ref/store/files/batch_result_error.go
index 06d68273..06d68273 100644
--- a/refstore/files/batch_result_error.go
+++ b/ref/store/files/batch_result_error.go
diff --git a/refstore/files/batch_test.go b/ref/store/files/batch_test.go
index d44ef22f..2a4eb055 100644
--- a/refstore/files/batch_test.go
+++ b/ref/store/files/batch_test.go
@@ -6,7 +6,7 @@ import (
"codeberg.org/lindenii/furgit/internal/testgit"
objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func TestBatchApplyRejectsStaleDeleteAndAppliesIndependentDelete(t *testing.T) {
diff --git a/refstore/files/broken_ref_error.go b/ref/store/files/broken_ref_error.go
index daa40849..daa40849 100644
--- a/refstore/files/broken_ref_error.go
+++ b/ref/store/files/broken_ref_error.go
diff --git a/refstore/files/close.go b/ref/store/files/close.go
index 58f400a5..58f400a5 100644
--- a/refstore/files/close.go
+++ b/ref/store/files/close.go
diff --git a/refstore/files/helpers_test.go b/ref/store/files/helpers_test.go
index 12f02694..c46cc9fc 100644
--- a/refstore/files/helpers_test.go
+++ b/ref/store/files/helpers_test.go
@@ -9,7 +9,7 @@ import (
"codeberg.org/lindenii/furgit/internal/testgit"
objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/refstore/files"
+ "codeberg.org/lindenii/furgit/ref/store/files"
)
const testPackedRefsTimeout = time.Second
diff --git a/refstore/files/new.go b/ref/store/files/new.go
index bca3a491..bca3a491 100644
--- a/refstore/files/new.go
+++ b/ref/store/files/new.go
diff --git a/refstore/files/packed_delete_test.go b/ref/store/files/packed_delete_test.go
index 75992a9d..3d14b71a 100644
--- a/refstore/files/packed_delete_test.go
+++ b/ref/store/files/packed_delete_test.go
@@ -10,7 +10,7 @@ import (
"codeberg.org/lindenii/furgit/internal/testgit"
objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func TestFilesTransactionPackedDeleteFailureLeavesRefsUnchanged(t *testing.T) {
diff --git a/refstore/files/packed_parse.go b/ref/store/files/packed_parse.go
index 3662f6ed..3662f6ed 100644
--- a/refstore/files/packed_parse.go
+++ b/ref/store/files/packed_parse.go
diff --git a/refstore/files/packed_read.go b/ref/store/files/packed_read.go
index 20800709..20800709 100644
--- a/refstore/files/packed_read.go
+++ b/ref/store/files/packed_read.go
diff --git a/refstore/files/packed_refs.go b/ref/store/files/packed_refs.go
index f3e91d83..f3e91d83 100644
--- a/refstore/files/packed_refs.go
+++ b/ref/store/files/packed_refs.go
diff --git a/refstore/files/read_list.go b/ref/store/files/read_list.go
index 358ec007..b8efd046 100644
--- a/refstore/files/read_list.go
+++ b/ref/store/files/read_list.go
@@ -6,7 +6,7 @@ import (
"slices"
"codeberg.org/lindenii/furgit/ref"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
// List lists references from the visible files ref namespace.
diff --git a/refstore/files/read_list_collect.go b/ref/store/files/read_list_collect.go
index f4e2cb69..f4e2cb69 100644
--- a/refstore/files/read_list_collect.go
+++ b/ref/store/files/read_list_collect.go
diff --git a/refstore/files/read_loose.go b/ref/store/files/read_loose.go
index 8c743fb4..fbbdb109 100644
--- a/refstore/files/read_loose.go
+++ b/ref/store/files/read_loose.go
@@ -8,7 +8,7 @@ import (
objectid "codeberg.org/lindenii/furgit/object/id"
"codeberg.org/lindenii/furgit/ref"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func (store *Store) readLooseRef(name string) (ref.Ref, error) { //nolint:ireturn
diff --git a/refstore/files/read_resolve.go b/ref/store/files/read_resolve.go
index 33d5b3e8..bba6c7e7 100644
--- a/refstore/files/read_resolve.go
+++ b/ref/store/files/read_resolve.go
@@ -4,7 +4,7 @@ import (
"errors"
"codeberg.org/lindenii/furgit/ref"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
// Resolve resolves one reference name from the files store visible namespace.
diff --git a/refstore/files/read_resolve_fully.go b/ref/store/files/read_resolve_fully.go
index de58eb6d..de58eb6d 100644
--- a/refstore/files/read_resolve_fully.go
+++ b/ref/store/files/read_resolve_fully.go
diff --git a/refstore/files/resolve_list_test.go b/ref/store/files/resolve_list_test.go
index e25a53f4..e25a53f4 100644
--- a/refstore/files/resolve_list_test.go
+++ b/ref/store/files/resolve_list_test.go
diff --git a/refstore/files/root_for.go b/ref/store/files/root_for.go
index cb968ad9..cb968ad9 100644
--- a/refstore/files/root_for.go
+++ b/ref/store/files/root_for.go
diff --git a/refstore/files/root_kind.go b/ref/store/files/root_kind.go
index d0ae8cf1..d0ae8cf1 100644
--- a/refstore/files/root_kind.go
+++ b/ref/store/files/root_kind.go
diff --git a/refstore/files/root_loose_path.go b/ref/store/files/root_loose_path.go
index a78d9bf3..a78d9bf3 100644
--- a/refstore/files/root_loose_path.go
+++ b/ref/store/files/root_loose_path.go
diff --git a/refstore/files/root_open_common.go b/ref/store/files/root_open_common.go
index cac98cbc..cac98cbc 100644
--- a/refstore/files/root_open_common.go
+++ b/ref/store/files/root_open_common.go
diff --git a/refstore/files/store.go b/ref/store/files/store.go
index ed9b8744..e0cced65 100644
--- a/refstore/files/store.go
+++ b/ref/store/files/store.go
@@ -8,7 +8,7 @@ import (
"time"
objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
// Store reads and writes one Git files ref namespace rooted at one repository
diff --git a/refstore/files/transaction.go b/ref/store/files/transaction.go
index 1babfe60..26d6613d 100644
--- a/refstore/files/transaction.go
+++ b/ref/store/files/transaction.go
@@ -1,7 +1,7 @@
package files
import (
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
type Transaction struct {
diff --git a/refstore/files/transaction_abort.go b/ref/store/files/transaction_abort.go
index cb82e4bf..cb82e4bf 100644
--- a/refstore/files/transaction_abort.go
+++ b/ref/store/files/transaction_abort.go
diff --git a/refstore/files/transaction_begin.go b/ref/store/files/transaction_begin.go
index 95834a33..1eca2375 100644
--- a/refstore/files/transaction_begin.go
+++ b/ref/store/files/transaction_begin.go
@@ -1,6 +1,6 @@
package files
-import "codeberg.org/lindenii/furgit/refstore"
+import "codeberg.org/lindenii/furgit/ref/store"
// BeginTransaction creates one new files transaction.
//
diff --git a/refstore/files/transaction_commit.go b/ref/store/files/transaction_commit.go
index 76bcb195..76bcb195 100644
--- a/refstore/files/transaction_commit.go
+++ b/ref/store/files/transaction_commit.go
diff --git a/refstore/files/transaction_dirs_test.go b/ref/store/files/transaction_dirs_test.go
index c010ae69..c010ae69 100644
--- a/refstore/files/transaction_dirs_test.go
+++ b/ref/store/files/transaction_dirs_test.go
diff --git a/refstore/files/transaction_names_test.go b/ref/store/files/transaction_names_test.go
index 03c288b1..f23294e5 100644
--- a/refstore/files/transaction_names_test.go
+++ b/ref/store/files/transaction_names_test.go
@@ -6,7 +6,7 @@ import (
"codeberg.org/lindenii/furgit/internal/testgit"
objectid "codeberg.org/lindenii/furgit/object/id"
"codeberg.org/lindenii/furgit/ref"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func TestFilesTransactionValidateUpdateNames(t *testing.T) {
diff --git a/refstore/files/transaction_pseudoref_test.go b/ref/store/files/transaction_pseudoref_test.go
index 4e7af666..53fb26c0 100644
--- a/refstore/files/transaction_pseudoref_test.go
+++ b/ref/store/files/transaction_pseudoref_test.go
@@ -6,7 +6,7 @@ import (
"codeberg.org/lindenii/furgit/internal/testgit"
objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func TestFilesTransactionPseudorefLifecycle(t *testing.T) {
diff --git a/refstore/files/transaction_queue.go b/ref/store/files/transaction_queue.go
index aa2004c3..aa2004c3 100644
--- a/refstore/files/transaction_queue.go
+++ b/ref/store/files/transaction_queue.go
diff --git a/refstore/files/transaction_queue_ops.go b/ref/store/files/transaction_queue_ops.go
index 047518c4..047518c4 100644
--- a/refstore/files/transaction_queue_ops.go
+++ b/ref/store/files/transaction_queue_ops.go
diff --git a/refstore/files/transaction_symbolic_test.go b/ref/store/files/transaction_symbolic_test.go
index d0a601f1..cc5a590b 100644
--- a/refstore/files/transaction_symbolic_test.go
+++ b/ref/store/files/transaction_symbolic_test.go
@@ -6,7 +6,7 @@ import (
"codeberg.org/lindenii/furgit/internal/testgit"
objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func TestFilesTransactionDirectSymbolicDeletes(t *testing.T) {
diff --git a/refstore/files/transaction_update_test.go b/ref/store/files/transaction_update_test.go
index b9bd5a2d..62879b32 100644
--- a/refstore/files/transaction_update_test.go
+++ b/ref/store/files/transaction_update_test.go
@@ -8,7 +8,7 @@ import (
"codeberg.org/lindenii/furgit/internal/testgit"
objectid "codeberg.org/lindenii/furgit/object/id"
"codeberg.org/lindenii/furgit/ref"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func TestFilesTransactionPackedUpdateCreatesLooseOverride(t *testing.T) {
diff --git a/refstore/files/trim.go b/ref/store/files/trim.go
index 69a851dc..69a851dc 100644
--- a/refstore/files/trim.go
+++ b/ref/store/files/trim.go
diff --git a/refstore/files/update_cleanup.go b/ref/store/files/update_cleanup.go
index 5df2d967..5df2d967 100644
--- a/refstore/files/update_cleanup.go
+++ b/ref/store/files/update_cleanup.go
diff --git a/refstore/files/update_cleanup_parents.go b/ref/store/files/update_cleanup_parents.go
index c62681fa..c62681fa 100644
--- a/refstore/files/update_cleanup_parents.go
+++ b/ref/store/files/update_cleanup_parents.go
diff --git a/refstore/files/update_commit.go b/ref/store/files/update_commit.go
index 3d39e990..3d39e990 100644
--- a/refstore/files/update_commit.go
+++ b/ref/store/files/update_commit.go
diff --git a/refstore/files/update_commit_delete.go b/ref/store/files/update_commit_delete.go
index 47a600fb..47a600fb 100644
--- a/refstore/files/update_commit_delete.go
+++ b/ref/store/files/update_commit_delete.go
diff --git a/refstore/files/update_dir_tree.go b/ref/store/files/update_dir_tree.go
index 51fb5cfb..51fb5cfb 100644
--- a/refstore/files/update_dir_tree.go
+++ b/ref/store/files/update_dir_tree.go
diff --git a/refstore/files/update_direct_read.go b/ref/store/files/update_direct_read.go
index 4efecdca..03fb2e11 100644
--- a/refstore/files/update_direct_read.go
+++ b/ref/store/files/update_direct_read.go
@@ -6,7 +6,7 @@ import (
"codeberg.org/lindenii/furgit/ref"
"codeberg.org/lindenii/furgit/ref/refname"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func (executor *refUpdateExecutor) directRead(name string) (directRefState, error) {
diff --git a/refstore/files/update_direct_ref.go b/ref/store/files/update_direct_ref.go
index 3b429be0..3b429be0 100644
--- a/refstore/files/update_direct_ref.go
+++ b/ref/store/files/update_direct_ref.go
diff --git a/refstore/files/update_error.go b/ref/store/files/update_error.go
index d8841d44..d8841d44 100644
--- a/refstore/files/update_error.go
+++ b/ref/store/files/update_error.go
diff --git a/refstore/files/update_executor.go b/ref/store/files/update_executor.go
index 749f7061..749f7061 100644
--- a/refstore/files/update_executor.go
+++ b/ref/store/files/update_executor.go
diff --git a/refstore/files/update_kind.go b/ref/store/files/update_kind.go
index f04719db..f04719db 100644
--- a/refstore/files/update_kind.go
+++ b/ref/store/files/update_kind.go
diff --git a/refstore/files/update_lock.go b/ref/store/files/update_lock.go
index 1ce9adbb..1ce9adbb 100644
--- a/refstore/files/update_lock.go
+++ b/ref/store/files/update_lock.go
diff --git a/refstore/files/update_lock_packed.go b/ref/store/files/update_lock_packed.go
index f74a4f5e..f74a4f5e 100644
--- a/refstore/files/update_lock_packed.go
+++ b/ref/store/files/update_lock_packed.go
diff --git a/refstore/files/update_operation_prepared.go b/ref/store/files/update_operation_prepared.go
index c50fea4e..c50fea4e 100644
--- a/refstore/files/update_operation_prepared.go
+++ b/ref/store/files/update_operation_prepared.go
diff --git a/refstore/files/update_operation_queue.go b/ref/store/files/update_operation_queue.go
index ef7ced2f..ef7ced2f 100644
--- a/refstore/files/update_operation_queue.go
+++ b/ref/store/files/update_operation_queue.go
diff --git a/refstore/files/update_path.go b/ref/store/files/update_path.go
index 2bd42535..2bd42535 100644
--- a/refstore/files/update_path.go
+++ b/ref/store/files/update_path.go
diff --git a/refstore/files/update_prepare.go b/ref/store/files/update_prepare.go
index 035c0bc2..035c0bc2 100644
--- a/refstore/files/update_prepare.go
+++ b/ref/store/files/update_prepare.go
diff --git a/refstore/files/update_prepare_lock.go b/ref/store/files/update_prepare_lock.go
index 67db9628..67db9628 100644
--- a/refstore/files/update_prepare_lock.go
+++ b/ref/store/files/update_prepare_lock.go
diff --git a/refstore/files/update_prepare_resolve.go b/ref/store/files/update_prepare_resolve.go
index 9e0e92ab..c78d77e2 100644
--- a/refstore/files/update_prepare_resolve.go
+++ b/ref/store/files/update_prepare_resolve.go
@@ -1,6 +1,6 @@
package files
-import "codeberg.org/lindenii/furgit/refstore"
+import "codeberg.org/lindenii/furgit/ref/store"
func (executor *refUpdateExecutor) resolvePreparedUpdates(ops []queuedUpdate) ([]preparedUpdate, error) {
prepared := make([]preparedUpdate, 0, len(ops))
diff --git a/refstore/files/update_prepare_verify.go b/ref/store/files/update_prepare_verify.go
index dcd14945..dcd14945 100644
--- a/refstore/files/update_prepare_verify.go
+++ b/ref/store/files/update_prepare_verify.go
diff --git a/refstore/files/update_resolve_target.go b/ref/store/files/update_resolve_target.go
index 7cfb9aa1..7cfb9aa1 100644
--- a/refstore/files/update_resolve_target.go
+++ b/ref/store/files/update_resolve_target.go
diff --git a/refstore/files/update_resolve_target_ordinary.go b/ref/store/files/update_resolve_target_ordinary.go
index 34206e0b..d22eafdd 100644
--- a/refstore/files/update_resolve_target_ordinary.go
+++ b/ref/store/files/update_resolve_target_ordinary.go
@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func (executor *refUpdateExecutor) resolveOrdinaryTarget(name string, allowMissing bool) (resolvedUpdateTarget, error) {
diff --git a/refstore/files/update_target_resolved.go b/ref/store/files/update_target_resolved.go
index c29e5938..c29e5938 100644
--- a/refstore/files/update_target_resolved.go
+++ b/ref/store/files/update_target_resolved.go
diff --git a/refstore/files/update_validate.go b/ref/store/files/update_validate.go
index 94a53fb7..4767957b 100644
--- a/refstore/files/update_validate.go
+++ b/ref/store/files/update_validate.go
@@ -6,7 +6,7 @@ import (
objectid "codeberg.org/lindenii/furgit/object/id"
"codeberg.org/lindenii/furgit/ref/refname"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func (executor *refUpdateExecutor) validateQueuedUpdate(op queuedUpdate) error {
diff --git a/refstore/files/update_verify_current.go b/ref/store/files/update_verify_current.go
index f8035994..77be54e8 100644
--- a/refstore/files/update_verify_current.go
+++ b/ref/store/files/update_verify_current.go
@@ -3,7 +3,7 @@ package files
import (
"strings"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func (executor *refUpdateExecutor) verifyPreparedUpdateCurrent(item preparedUpdate) error {
diff --git a/refstore/files/update_verify_refnames.go b/ref/store/files/update_verify_refnames.go
index 12d67c5f..308a9868 100644
--- a/refstore/files/update_verify_refnames.go
+++ b/ref/store/files/update_verify_refnames.go
@@ -3,7 +3,7 @@ package files
import (
"strings"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func verifyRefnameAvailable(name string, existing map[string]struct{}, writes []string, deleted map[string]struct{}) error {
diff --git a/refstore/files/update_visible_names.go b/ref/store/files/update_visible_names.go
index f5792f93..f5792f93 100644
--- a/refstore/files/update_visible_names.go
+++ b/ref/store/files/update_visible_names.go
diff --git a/refstore/files/update_write_loose.go b/ref/store/files/update_write_loose.go
index 212be9a8..212be9a8 100644
--- a/refstore/files/update_write_loose.go
+++ b/ref/store/files/update_write_loose.go
diff --git a/refstore/files/update_write_packed_refs.go b/ref/store/files/update_write_packed_refs.go
index c7eea780..c7eea780 100644
--- a/refstore/files/update_write_packed_refs.go
+++ b/ref/store/files/update_write_packed_refs.go
diff --git a/refstore/files/worktree_test.go b/ref/store/files/worktree_test.go
index 4a66b7a6..c4df76cf 100644
--- a/refstore/files/worktree_test.go
+++ b/ref/store/files/worktree_test.go
@@ -7,7 +7,7 @@ import (
"codeberg.org/lindenii/furgit/internal/testgit"
objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
func TestFilesWorktreeRefsMatchGit(t *testing.T) {
diff --git a/refstore/read_write_store.go b/ref/store/read_write_store.go
index 7be1af61..7be1af61 100644
--- a/refstore/read_write_store.go
+++ b/ref/store/read_write_store.go
diff --git a/refstore/reading.go b/ref/store/reading.go
index 3444f07f..3444f07f 100644
--- a/refstore/reading.go
+++ b/ref/store/reading.go
diff --git a/refstore/transaction.go b/ref/store/transaction.go
index a70cd3d4..a70cd3d4 100644
--- a/refstore/transaction.go
+++ b/ref/store/transaction.go
diff --git a/refstore/transactional_store.go b/ref/store/transactional_store.go
index 8f5c32cd..8f5c32cd 100644
--- a/refstore/transactional_store.go
+++ b/ref/store/transactional_store.go
diff --git a/refstore/update_errors.go b/ref/store/update_errors.go
index f05f37d2..f05f37d2 100644
--- a/refstore/update_errors.go
+++ b/ref/store/update_errors.go
diff --git a/repository/open.go b/repository/open.go
index c7dca578..aba2c922 100644
--- a/repository/open.go
+++ b/repository/open.go
@@ -4,7 +4,7 @@ import (
"fmt"
"os"
- reffiles "codeberg.org/lindenii/furgit/refstore/files"
+ reffiles "codeberg.org/lindenii/furgit/ref/store/files"
)
// Open opens a repository and wires object/ref stores from its on-disk format.
diff --git a/repository/refs.go b/repository/refs.go
index 83afe047..1337162b 100644
--- a/repository/refs.go
+++ b/repository/refs.go
@@ -1,6 +1,6 @@
package repository
-import "codeberg.org/lindenii/furgit/refstore"
+import "codeberg.org/lindenii/furgit/ref/store"
// Refs returns the configured ref store.
//
diff --git a/repository/repository.go b/repository/repository.go
index 57007bb9..a9d43729 100644
--- a/repository/repository.go
+++ b/repository/repository.go
@@ -9,7 +9,7 @@ import (
"codeberg.org/lindenii/furgit/object/store"
objectloose "codeberg.org/lindenii/furgit/object/store/loose"
objectpacked "codeberg.org/lindenii/furgit/object/store/packed"
- "codeberg.org/lindenii/furgit/refstore"
+ "codeberg.org/lindenii/furgit/ref/store"
)
// Repository is a thin composition root for repository-local stores.