MCPcopy Create free account
hub / github.com/go-git/go-git / Stats

Method Stats

plumbing/object/commit.go:368–370  ·  view source on GitHub ↗

Stats returns the stats of a commit.

()

Source from the content-addressed store, hash-verified

366
367// Stats returns the stats of a commit.
368func (c *Commit) Stats() (FileStats, error) {
369 return c.StatsContext(context.Background())
370}
371
372// StatsContext returns the stats of a commit. Error will be return if context
373// expires. Provided context must be non-nil.

Callers

nothing calls this directly

Calls 1

StatsContextMethod · 0.95

Tested by

no test coverage detected