MCPcopy Index your code
hub / github.com/go-git/go-git / buildSidebandIfSupported

Function buildSidebandIfSupported

remote.go:1211–1227  ·  view source on GitHub ↗
(l *capability.List, reader io.Reader, p sideband.Progress)

Source from the content-addressed store, hash-verified

1209}
1210
1211func buildSidebandIfSupported(l *capability.List, reader io.Reader, p sideband.Progress) io.Reader {
1212 var t sideband.Type
1213
1214 switch {
1215 case l.Supports(capability.Sideband):
1216 t = sideband.Sideband
1217 case l.Supports(capability.Sideband64k):
1218 t = sideband.Sideband64k
1219 default:
1220 return reader
1221 }
1222
1223 d := sideband.NewDemuxer(t, reader)
1224 d.Progress = p
1225
1226 return d
1227}
1228
1229func (r *Remote) updateLocalReferenceStorage(
1230 specs []config.RefSpec,

Callers 1

fetchPackMethod · 0.85

Calls 2

NewDemuxerFunction · 0.92
SupportsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…