MCPcopy
hub / github.com/git-lfs/git-lfs / dumpJson

Method dumpJson

commands/command_fetch.go:49–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (d *fetchWatcher) dumpJson() {
50 data := struct {
51 Transfers []*tq.Transfer `json:"transfers"`
52 }{Transfers: d.transfers}
53 if data.Transfers == nil {
54 data.Transfers = []*tq.Transfer{}
55 }
56 encoder := json.NewEncoder(os.Stdout)
57 encoder.SetIndent("", " ")
58 if err := encoder.Encode(data); err != nil {
59 ExitWithError(err)
60 }
61}
62
63func (d *fetchWatcher) hasObserved(oid string) bool {
64 return d.observed[oid]

Callers 1

fetchCommandFunction · 0.95

Calls 2

ExitWithErrorFunction · 0.85
EncodeMethod · 0.80

Tested by

no test coverage detected