aboutsummaryrefslogtreecommitdiff
path: root/repo.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commit01ae5ecb514db3b0a1aaf9235e331b671bd64f66 (patch)
tree6ff345f26c7a10e659ff78ade53c4b8add831825 /repo.go
parentExtract bufpool into its own package (diff)
signature
Move config to its own package
Diffstat (limited to 'repo.go')
-rw-r--r--repo.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/repo.go b/repo.go
index 0e03db5f..0736a943 100644
--- a/repo.go
+++ b/repo.go
@@ -8,6 +8,8 @@ import (
"os"
"path/filepath"
"sync"
+
+ "git.sr.ht/~runxiyu/furgit/config"
)
// Repository represents the root of a Git repository.
@@ -48,7 +50,7 @@ func OpenRepository(path string) (*Repository, error) {
_ = f.Close()
}()
- cfg, err := ParseConfig(f)
+ cfg, err := config.ParseConfig(f)
if err != nil {
return nil, fmt.Errorf("furgit: failed to parse config: %w", err)
}