aboutsummaryrefslogtreecommitdiff
path: root/refstore/files/update_visible_names.go
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 /refstore/files/update_visible_names.go
parent*: objectstore -> object/store (diff)
signatureNo signature
*: refstore -> ref/store
Diffstat (limited to 'refstore/files/update_visible_names.go')
-rw-r--r--refstore/files/update_visible_names.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/refstore/files/update_visible_names.go b/refstore/files/update_visible_names.go
deleted file mode 100644
index f5792f93..00000000
--- a/refstore/files/update_visible_names.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package files
-
-func (executor *refUpdateExecutor) collectVisibleNames() (map[string]struct{}, error) {
- names := make(map[string]struct{})
-
- looseNames, err := executor.store.collectLooseRefNames()
- if err != nil {
- return nil, err
- }
-
- for _, name := range looseNames {
- names[name] = struct{}{}
- }
-
- packed, err := executor.store.readPackedRefs()
- if err != nil {
- return nil, err
- }
-
- for name := range packed.byName {
- if _, exists := names[name]; exists {
- continue
- }
-
- names[name] = struct{}{}
- }
-
- return names, nil
-}