aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commitb15ad143be0b44e8ce9089c52476d3b9b708a58e (patch)
tree6563017b246931eac157164e6603233ec7acd5bf
parentMake ObjectType look like a pointer-receiver in the docs (diff)
signature
Remove repo.Root
-rw-r--r--repo.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/repo.go b/repo.go
index 9b767f01..d917ec04 100644
--- a/repo.go
+++ b/repo.go
@@ -106,11 +106,6 @@ func (repo *Repository) Close() error {
return closeErr
}
-// Root returns the repository root path.
-func (repo *Repository) Root() string {
- return repo.rootPath
-}
-
// repoPath joins the root with a relative path.
func (repo *Repository) repoPath(rel string) string {
return filepath.Join(repo.rootPath, rel)