aboutsummaryrefslogtreecommitdiff
path: root/ref/store/files
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-05-27 06:14:54 +0000
committerGravatar Runxi Yu2026-05-27 06:14:54 +0000
commitc1122079bf6ebf1ef0db2ee5048e134c9ee9a850 (patch)
tree46ce23f979dfd2a0121aff7c2be03adcad99ac4a /ref/store/files
parentREADME: Use next's (diff)
signatureNo signature
Switch package URLs to lindenii.org/go/furgit v0.1.178
Diffstat (limited to 'ref/store/files')
-rw-r--r--ref/store/files/batch.go2
-rw-r--r--ref/store/files/batch_apply.go2
-rw-r--r--ref/store/files/batch_begin.go2
-rw-r--r--ref/store/files/batch_queue_ops.go2
-rw-r--r--ref/store/files/batch_rejection.go2
-rw-r--r--ref/store/files/batch_test.go6
-rw-r--r--ref/store/files/helpers_test.go6
-rw-r--r--ref/store/files/new.go2
-rw-r--r--ref/store/files/packed_delete_test.go6
-rw-r--r--ref/store/files/packed_parse.go4
-rw-r--r--ref/store/files/packed_read.go2
-rw-r--r--ref/store/files/packed_refs.go2
-rw-r--r--ref/store/files/read_list.go4
-rw-r--r--ref/store/files/read_loose.go6
-rw-r--r--ref/store/files/read_resolve.go4
-rw-r--r--ref/store/files/read_resolve_fully.go2
-rw-r--r--ref/store/files/resolve_list_test.go6
-rw-r--r--ref/store/files/root_loose_path.go2
-rw-r--r--ref/store/files/store.go4
-rw-r--r--ref/store/files/transaction.go2
-rw-r--r--ref/store/files/transaction_begin.go2
-rw-r--r--ref/store/files/transaction_dirs_test.go4
-rw-r--r--ref/store/files/transaction_names_test.go8
-rw-r--r--ref/store/files/transaction_pseudoref_test.go6
-rw-r--r--ref/store/files/transaction_queue_ops.go2
-rw-r--r--ref/store/files/transaction_symbolic_test.go6
-rw-r--r--ref/store/files/transaction_update_test.go8
-rw-r--r--ref/store/files/update_direct_read.go6
-rw-r--r--ref/store/files/update_direct_ref.go2
-rw-r--r--ref/store/files/update_operation_queue.go2
-rw-r--r--ref/store/files/update_prepare_resolve.go2
-rw-r--r--ref/store/files/update_resolve_target_ordinary.go2
-rw-r--r--ref/store/files/update_validate.go6
-rw-r--r--ref/store/files/update_verify_current.go2
-rw-r--r--ref/store/files/update_verify_refnames.go2
-rw-r--r--ref/store/files/worktree_test.go6
36 files changed, 67 insertions, 67 deletions
diff --git a/ref/store/files/batch.go b/ref/store/files/batch.go
index d8037bbb..6f8fa2a3 100644
--- a/ref/store/files/batch.go
+++ b/ref/store/files/batch.go
@@ -1,6 +1,6 @@
package files
-import refstore "codeberg.org/lindenii/furgit/ref/store"
+import refstore "lindenii.org/go/furgit/ref/store"
// Batch stages files-store updates for one non-atomic apply.
type Batch struct {
diff --git a/ref/store/files/batch_apply.go b/ref/store/files/batch_apply.go
index 1847b544..3c8a68b3 100644
--- a/ref/store/files/batch_apply.go
+++ b/ref/store/files/batch_apply.go
@@ -1,6 +1,6 @@
package files
-import refstore "codeberg.org/lindenii/furgit/ref/store"
+import refstore "lindenii.org/go/furgit/ref/store"
// Apply validates and applies the queued updates.
func (batch *Batch) Apply() ([]refstore.BatchResult, error) {
diff --git a/ref/store/files/batch_begin.go b/ref/store/files/batch_begin.go
index c8a0dca7..2f0a365e 100644
--- a/ref/store/files/batch_begin.go
+++ b/ref/store/files/batch_begin.go
@@ -1,6 +1,6 @@
package files
-import refstore "codeberg.org/lindenii/furgit/ref/store"
+import refstore "lindenii.org/go/furgit/ref/store"
// BeginBatch creates one new files batch.
//
diff --git a/ref/store/files/batch_queue_ops.go b/ref/store/files/batch_queue_ops.go
index 441bcaba..429229aa 100644
--- a/ref/store/files/batch_queue_ops.go
+++ b/ref/store/files/batch_queue_ops.go
@@ -1,6 +1,6 @@
package files
-import objectid "codeberg.org/lindenii/furgit/object/id"
+import objectid "lindenii.org/go/furgit/object/id"
// Create queues a detached reference creation.
func (batch *Batch) Create(name string, newID objectid.ObjectID) error {
diff --git a/ref/store/files/batch_rejection.go b/ref/store/files/batch_rejection.go
index 7f31536c..a59aa2db 100644
--- a/ref/store/files/batch_rejection.go
+++ b/ref/store/files/batch_rejection.go
@@ -3,7 +3,7 @@ package files
import (
"errors"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func isBatchRejected(err error) bool {
diff --git a/ref/store/files/batch_test.go b/ref/store/files/batch_test.go
index 80575e5e..6eb8ff82 100644
--- a/ref/store/files/batch_test.go
+++ b/ref/store/files/batch_test.go
@@ -4,9 +4,9 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/internal/testgit"
- objectid "codeberg.org/lindenii/furgit/object/id"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ "lindenii.org/go/furgit/internal/testgit"
+ objectid "lindenii.org/go/furgit/object/id"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func TestBatchApplyRejectsStaleDeleteAndAppliesIndependentDelete(t *testing.T) {
diff --git a/ref/store/files/helpers_test.go b/ref/store/files/helpers_test.go
index c46cc9fc..da1b81eb 100644
--- a/ref/store/files/helpers_test.go
+++ b/ref/store/files/helpers_test.go
@@ -7,9 +7,9 @@ import (
"testing"
"time"
- "codeberg.org/lindenii/furgit/internal/testgit"
- objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/ref/store/files"
+ "lindenii.org/go/furgit/internal/testgit"
+ objectid "lindenii.org/go/furgit/object/id"
+ "lindenii.org/go/furgit/ref/store/files"
)
const testPackedRefsTimeout = time.Second
diff --git a/ref/store/files/new.go b/ref/store/files/new.go
index 391930fb..1a11098b 100644
--- a/ref/store/files/new.go
+++ b/ref/store/files/new.go
@@ -5,7 +5,7 @@ import (
"os"
"time"
- objectid "codeberg.org/lindenii/furgit/object/id"
+ objectid "lindenii.org/go/furgit/object/id"
)
// New creates one files ref store rooted at one repository gitdir.
diff --git a/ref/store/files/packed_delete_test.go b/ref/store/files/packed_delete_test.go
index 184eb79c..ce87efd5 100644
--- a/ref/store/files/packed_delete_test.go
+++ b/ref/store/files/packed_delete_test.go
@@ -8,9 +8,9 @@ import (
"testing"
"time"
- "codeberg.org/lindenii/furgit/internal/testgit"
- objectid "codeberg.org/lindenii/furgit/object/id"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ "lindenii.org/go/furgit/internal/testgit"
+ objectid "lindenii.org/go/furgit/object/id"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func TestFilesTransactionPackedDeleteFailureLeavesRefsUnchanged(t *testing.T) {
diff --git a/ref/store/files/packed_parse.go b/ref/store/files/packed_parse.go
index 3662f6ed..63e48bbe 100644
--- a/ref/store/files/packed_parse.go
+++ b/ref/store/files/packed_parse.go
@@ -6,8 +6,8 @@ import (
"io"
"strings"
- objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/ref"
+ objectid "lindenii.org/go/furgit/object/id"
+ "lindenii.org/go/furgit/ref"
)
func parsePackedRefs(r io.Reader, algo objectid.Algorithm) (map[string]ref.Detached, []ref.Detached, error) {
diff --git a/ref/store/files/packed_read.go b/ref/store/files/packed_read.go
index 20800709..dafd7f1a 100644
--- a/ref/store/files/packed_read.go
+++ b/ref/store/files/packed_read.go
@@ -5,7 +5,7 @@ import (
"fmt"
"os"
- "codeberg.org/lindenii/furgit/ref"
+ "lindenii.org/go/furgit/ref"
)
func (store *Store) readPackedRefs() (*packedRefs, error) {
diff --git a/ref/store/files/packed_refs.go b/ref/store/files/packed_refs.go
index f3e91d83..21bcc791 100644
--- a/ref/store/files/packed_refs.go
+++ b/ref/store/files/packed_refs.go
@@ -1,7 +1,7 @@
package files
import (
- "codeberg.org/lindenii/furgit/ref"
+ "lindenii.org/go/furgit/ref"
)
type packedRefs struct {
diff --git a/ref/store/files/read_list.go b/ref/store/files/read_list.go
index 5a828276..61739192 100644
--- a/ref/store/files/read_list.go
+++ b/ref/store/files/read_list.go
@@ -5,8 +5,8 @@ import (
"path"
"slices"
- "codeberg.org/lindenii/furgit/ref"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ "lindenii.org/go/furgit/ref"
+ refstore "lindenii.org/go/furgit/ref/store"
)
// List lists references from the visible files ref namespace.
diff --git a/ref/store/files/read_loose.go b/ref/store/files/read_loose.go
index e9b1435a..146db0f2 100644
--- a/ref/store/files/read_loose.go
+++ b/ref/store/files/read_loose.go
@@ -6,9 +6,9 @@ import (
"os"
"strings"
- objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/ref"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ objectid "lindenii.org/go/furgit/object/id"
+ "lindenii.org/go/furgit/ref"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func (store *Store) readLooseRef(name string) (ref.Ref, error) { //nolint:ireturn
diff --git a/ref/store/files/read_resolve.go b/ref/store/files/read_resolve.go
index a998f970..558a9c89 100644
--- a/ref/store/files/read_resolve.go
+++ b/ref/store/files/read_resolve.go
@@ -3,8 +3,8 @@ package files
import (
"errors"
- "codeberg.org/lindenii/furgit/ref"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ "lindenii.org/go/furgit/ref"
+ refstore "lindenii.org/go/furgit/ref/store"
)
// Resolve resolves one reference name from the files store visible namespace.
diff --git a/ref/store/files/read_resolve_fully.go b/ref/store/files/read_resolve_fully.go
index de58eb6d..e2a465af 100644
--- a/ref/store/files/read_resolve_fully.go
+++ b/ref/store/files/read_resolve_fully.go
@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
- "codeberg.org/lindenii/furgit/ref"
+ "lindenii.org/go/furgit/ref"
)
// ResolveToDetached resolves symbolic references through the visible files store
diff --git a/ref/store/files/resolve_list_test.go b/ref/store/files/resolve_list_test.go
index d52c5aa2..c039da4f 100644
--- a/ref/store/files/resolve_list_test.go
+++ b/ref/store/files/resolve_list_test.go
@@ -4,9 +4,9 @@ import (
"slices"
"testing"
- "codeberg.org/lindenii/furgit/internal/testgit"
- objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/ref"
+ "lindenii.org/go/furgit/internal/testgit"
+ objectid "lindenii.org/go/furgit/object/id"
+ "lindenii.org/go/furgit/ref"
)
func TestFilesResolveAndListOverlay(t *testing.T) {
diff --git a/ref/store/files/root_loose_path.go b/ref/store/files/root_loose_path.go
index 7764073b..40f97801 100644
--- a/ref/store/files/root_loose_path.go
+++ b/ref/store/files/root_loose_path.go
@@ -3,7 +3,7 @@ package files
import (
"path"
- "codeberg.org/lindenii/furgit/ref/name"
+ "lindenii.org/go/furgit/ref/name"
)
func (store *Store) loosePath(name string) refPath {
diff --git a/ref/store/files/store.go b/ref/store/files/store.go
index 66d46d06..ee83ffa2 100644
--- a/ref/store/files/store.go
+++ b/ref/store/files/store.go
@@ -7,8 +7,8 @@ import (
"os"
"time"
- objectid "codeberg.org/lindenii/furgit/object/id"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ objectid "lindenii.org/go/furgit/object/id"
+ refstore "lindenii.org/go/furgit/ref/store"
)
// Store reads and writes one Git files ref namespace rooted at one repository
diff --git a/ref/store/files/transaction.go b/ref/store/files/transaction.go
index fec43e1d..bbf6607f 100644
--- a/ref/store/files/transaction.go
+++ b/ref/store/files/transaction.go
@@ -1,7 +1,7 @@
package files
import (
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ refstore "lindenii.org/go/furgit/ref/store"
)
// Transaction stages files-store updates for one atomic commit.
diff --git a/ref/store/files/transaction_begin.go b/ref/store/files/transaction_begin.go
index cdd3bad1..5da0c43d 100644
--- a/ref/store/files/transaction_begin.go
+++ b/ref/store/files/transaction_begin.go
@@ -1,6 +1,6 @@
package files
-import refstore "codeberg.org/lindenii/furgit/ref/store"
+import refstore "lindenii.org/go/furgit/ref/store"
// BeginTransaction creates one new files transaction.
//
diff --git a/ref/store/files/transaction_dirs_test.go b/ref/store/files/transaction_dirs_test.go
index c010ae69..0cf54c28 100644
--- a/ref/store/files/transaction_dirs_test.go
+++ b/ref/store/files/transaction_dirs_test.go
@@ -3,8 +3,8 @@ package files_test
import (
"testing"
- "codeberg.org/lindenii/furgit/internal/testgit"
- objectid "codeberg.org/lindenii/furgit/object/id"
+ "lindenii.org/go/furgit/internal/testgit"
+ objectid "lindenii.org/go/furgit/object/id"
)
func TestFilesTransactionEmptyDirectoriesDoNotBlock(t *testing.T) {
diff --git a/ref/store/files/transaction_names_test.go b/ref/store/files/transaction_names_test.go
index b362cb08..39fc68ed 100644
--- a/ref/store/files/transaction_names_test.go
+++ b/ref/store/files/transaction_names_test.go
@@ -3,10 +3,10 @@ package files_test
import (
"testing"
- "codeberg.org/lindenii/furgit/internal/testgit"
- objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/ref"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ "lindenii.org/go/furgit/internal/testgit"
+ objectid "lindenii.org/go/furgit/object/id"
+ "lindenii.org/go/furgit/ref"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func TestFilesTransactionValidateUpdateNames(t *testing.T) {
diff --git a/ref/store/files/transaction_pseudoref_test.go b/ref/store/files/transaction_pseudoref_test.go
index ea57e92f..33e05d70 100644
--- a/ref/store/files/transaction_pseudoref_test.go
+++ b/ref/store/files/transaction_pseudoref_test.go
@@ -4,9 +4,9 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/internal/testgit"
- objectid "codeberg.org/lindenii/furgit/object/id"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ "lindenii.org/go/furgit/internal/testgit"
+ objectid "lindenii.org/go/furgit/object/id"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func TestFilesTransactionPseudorefLifecycle(t *testing.T) {
diff --git a/ref/store/files/transaction_queue_ops.go b/ref/store/files/transaction_queue_ops.go
index 63f48254..958ced5d 100644
--- a/ref/store/files/transaction_queue_ops.go
+++ b/ref/store/files/transaction_queue_ops.go
@@ -1,6 +1,6 @@
package files
-import objectid "codeberg.org/lindenii/furgit/object/id"
+import objectid "lindenii.org/go/furgit/object/id"
// Create queues a detached reference creation.
func (tx *Transaction) Create(name string, newID objectid.ObjectID) error {
diff --git a/ref/store/files/transaction_symbolic_test.go b/ref/store/files/transaction_symbolic_test.go
index 360686d6..ed29ae23 100644
--- a/ref/store/files/transaction_symbolic_test.go
+++ b/ref/store/files/transaction_symbolic_test.go
@@ -4,9 +4,9 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/internal/testgit"
- objectid "codeberg.org/lindenii/furgit/object/id"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ "lindenii.org/go/furgit/internal/testgit"
+ objectid "lindenii.org/go/furgit/object/id"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func TestFilesTransactionDirectSymbolicDeletes(t *testing.T) {
diff --git a/ref/store/files/transaction_update_test.go b/ref/store/files/transaction_update_test.go
index a29d586e..d8e89cb0 100644
--- a/ref/store/files/transaction_update_test.go
+++ b/ref/store/files/transaction_update_test.go
@@ -5,10 +5,10 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/internal/testgit"
- objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/ref"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ "lindenii.org/go/furgit/internal/testgit"
+ objectid "lindenii.org/go/furgit/object/id"
+ "lindenii.org/go/furgit/ref"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func TestFilesTransactionPackedUpdateCreatesLooseOverride(t *testing.T) {
diff --git a/ref/store/files/update_direct_read.go b/ref/store/files/update_direct_read.go
index 50e15026..0f9ccc2c 100644
--- a/ref/store/files/update_direct_read.go
+++ b/ref/store/files/update_direct_read.go
@@ -4,9 +4,9 @@ import (
"errors"
"fmt"
- "codeberg.org/lindenii/furgit/ref"
- "codeberg.org/lindenii/furgit/ref/name"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ "lindenii.org/go/furgit/ref"
+ "lindenii.org/go/furgit/ref/name"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func (executor *refUpdateExecutor) directRead(name string) (directRefState, error) {
diff --git a/ref/store/files/update_direct_ref.go b/ref/store/files/update_direct_ref.go
index 3b429be0..79136da6 100644
--- a/ref/store/files/update_direct_ref.go
+++ b/ref/store/files/update_direct_ref.go
@@ -1,6 +1,6 @@
package files
-import objectid "codeberg.org/lindenii/furgit/object/id"
+import objectid "lindenii.org/go/furgit/object/id"
type directRefKind uint8
diff --git a/ref/store/files/update_operation_queue.go b/ref/store/files/update_operation_queue.go
index ef7ced2f..ecfdee28 100644
--- a/ref/store/files/update_operation_queue.go
+++ b/ref/store/files/update_operation_queue.go
@@ -1,6 +1,6 @@
package files
-import objectid "codeberg.org/lindenii/furgit/object/id"
+import objectid "lindenii.org/go/furgit/object/id"
type queuedUpdate struct {
name string
diff --git a/ref/store/files/update_prepare_resolve.go b/ref/store/files/update_prepare_resolve.go
index 19d209b0..a0437332 100644
--- a/ref/store/files/update_prepare_resolve.go
+++ b/ref/store/files/update_prepare_resolve.go
@@ -1,6 +1,6 @@
package files
-import refstore "codeberg.org/lindenii/furgit/ref/store"
+import refstore "lindenii.org/go/furgit/ref/store"
func (executor *refUpdateExecutor) resolvePreparedUpdates(ops []queuedUpdate) ([]preparedUpdate, error) {
prepared := make([]preparedUpdate, 0, len(ops))
diff --git a/ref/store/files/update_resolve_target_ordinary.go b/ref/store/files/update_resolve_target_ordinary.go
index cf8e1978..73dc9e48 100644
--- a/ref/store/files/update_resolve_target_ordinary.go
+++ b/ref/store/files/update_resolve_target_ordinary.go
@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func (executor *refUpdateExecutor) resolveOrdinaryTarget(name string, allowMissing bool) (resolvedUpdateTarget, error) {
diff --git a/ref/store/files/update_validate.go b/ref/store/files/update_validate.go
index ac3429aa..53758e19 100644
--- a/ref/store/files/update_validate.go
+++ b/ref/store/files/update_validate.go
@@ -4,9 +4,9 @@ import (
"fmt"
"strings"
- objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/ref/name"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ objectid "lindenii.org/go/furgit/object/id"
+ "lindenii.org/go/furgit/ref/name"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func (executor *refUpdateExecutor) validateQueuedUpdate(op queuedUpdate) error {
diff --git a/ref/store/files/update_verify_current.go b/ref/store/files/update_verify_current.go
index 51ed1b42..aa69ae76 100644
--- a/ref/store/files/update_verify_current.go
+++ b/ref/store/files/update_verify_current.go
@@ -3,7 +3,7 @@ package files
import (
"strings"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func (executor *refUpdateExecutor) verifyPreparedUpdateCurrent(item preparedUpdate) error {
diff --git a/ref/store/files/update_verify_refnames.go b/ref/store/files/update_verify_refnames.go
index 8bc34a62..04bdcf21 100644
--- a/ref/store/files/update_verify_refnames.go
+++ b/ref/store/files/update_verify_refnames.go
@@ -3,7 +3,7 @@ package files
import (
"strings"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func verifyRefnameAvailable(name string, existing map[string]struct{}, writes []string, deleted map[string]struct{}) error {
diff --git a/ref/store/files/worktree_test.go b/ref/store/files/worktree_test.go
index ae3dc299..f8a3e8e0 100644
--- a/ref/store/files/worktree_test.go
+++ b/ref/store/files/worktree_test.go
@@ -5,9 +5,9 @@ import (
"slices"
"testing"
- "codeberg.org/lindenii/furgit/internal/testgit"
- objectid "codeberg.org/lindenii/furgit/object/id"
- refstore "codeberg.org/lindenii/furgit/ref/store"
+ "lindenii.org/go/furgit/internal/testgit"
+ objectid "lindenii.org/go/furgit/object/id"
+ refstore "lindenii.org/go/furgit/ref/store"
)
func TestFilesWorktreeRefsMatchGit(t *testing.T) {