MCPcopy Create free account
hub / github.com/alibaba/open-code-review / LoadSummary

Function LoadSummary

internal/session/list.go:131–137  ·  view source on GitHub ↗

LoadSummary loads a single session's Summary. Errors when the session file is missing or unreadable.

(repoDir, sessionID string)

Source from the content-addressed store, hash-verified

129// LoadSummary loads a single session's Summary. Errors when the session
130// file is missing or unreadable.
131func LoadSummary(repoDir, sessionID string) (*Summary, error) {
132 path, err := SessionFilePath(repoDir, sessionID)
133 if err != nil {
134 return nil, err
135 }
136 return loadSummaryFromFile(path, sessionID, repoDir)
137}
138
139// LoadDetail returns the summary plus per-file item records for one session.
140func LoadDetail(repoDir, sessionID string) (*Summary, []ItemDetail, error) {

Calls 2

SessionFilePathFunction · 0.85
loadSummaryFromFileFunction · 0.85