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

Method ShallowWriter

storage/filesystem/dotgit/dotgit.go:195–197  ·  view source on GitHub ↗

ShallowWriter returns a file pointer for write to the shallow file

()

Source from the content-addressed store, hash-verified

193
194// ShallowWriter returns a file pointer for write to the shallow file
195func (d *DotGit) ShallowWriter() (billy.File, error) {
196 return d.fs.Create(shallowPath)
197}
198
199// Shallow returns a file pointer for read to the shallow file
200func (d *DotGit) Shallow() (billy.File, error) {

Callers 2

SetShallowMethod · 0.80

Calls 1

CreateMethod · 0.80

Tested by 1