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

Method SetShallow

storage/memory/storage.go:304–307  ·  view source on GitHub ↗
(commits []plumbing.Hash)

Source from the content-addressed store, hash-verified

302type ShallowStorage []plumbing.Hash
303
304func (s *ShallowStorage) SetShallow(commits []plumbing.Hash) error {
305 *s = commits
306 return nil
307}
308
309func (s ShallowStorage) Shallow() ([]plumbing.Hash, error) {
310 return s, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected