diff options
| author | 2026-03-29 08:09:34 +0000 | |
|---|---|---|
| committer | 2026-03-29 08:09:34 +0000 | |
| commit | 161d2fab0b7ddee35696c5600d3ebd5bae6e6527 (patch) | |
| tree | 887cd546fe3a05489cd3b4e37f9a4bf2770e50f1 /repository/commit_graph.go | |
| parent | *: Remove Close exception for MT-Safe (diff) | |
| signature | No signature | |
repository: Add guidance
Diffstat (limited to 'repository/commit_graph.go')
| -rw-r--r-- | repository/commit_graph.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/repository/commit_graph.go b/repository/commit_graph.go index 3f0a0888..4f210b56 100644 --- a/repository/commit_graph.go +++ b/repository/commit_graph.go @@ -31,6 +31,11 @@ func openCommitGraph(root *os.Root, algo objectid.Algorithm) (*commitgraphread.R // CommitGraph returns the configured commit-graph reader, if available. // +// Not all repositories have a commit-graph, so CommitGraph may return nil. +// Most callers should prefer [Repository.CommitQueries] or +// [Repository.Reachability] unless they specifically need direct +// commit-graph access. +// // Labels: Life-Parent, Close-No. func (repo *Repository) CommitGraph() *commitgraphread.Reader { return repo.commitGraph |
