MCPcopy
hub / github.com/sinclairtarget/git-who / JSONBackend

Struct JSONBackend

internal/cache/backends/json.go:20–22  ·  view source on GitHub ↗

Stores commits on disk at a particular filepath. Commits are stored as newline-delimited JSON. For now, all commits that match the revs being searched for are loaded into memory before being returned.

Source from the content-addressed store, hash-verified

18// Commits are stored as newline-delimited JSON. For now, all commits that match
19// the revs being searched for are loaded into memory before being returned.
20type JSONBackend struct {
21 Path string
22}
23
24func (b JSONBackend) Name() string {
25 return "json"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected