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

Method waitBuildIndex

storage/filesystem/dotgit/writers.go:81–88  ·  view source on GitHub ↗

waitBuildIndex waits until buildIndex function finishes, this can terminate with a packfile.ErrEmptyPackfile, this means that nothing was written so we ignore the error

()

Source from the content-addressed store, hash-verified

79// with a packfile.ErrEmptyPackfile, this means that nothing was written so we
80// ignore the error
81func (w *PackWriter) waitBuildIndex() error {
82 err := <-w.result
83 if err == packfile.ErrEmptyPackfile {
84 return nil
85 }
86
87 return err
88}
89
90func (w *PackWriter) Write(p []byte) (int, error) {
91 return w.synced.Write(p)

Callers 1

CloseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected