gofmt: realign config structs after TargetMaxRefUpdates · Entire
gofmt: realign config structs after TargetMaxRefUpdates
85aba74→main·
Sessions
3ab7999b3055View transcript
Changes
2
internal/syncer
Msyncer.go+1/-1
unstable
Mclient.go+14/-14
739 unmodified lines
740
741
742
743
743
744
745
746
739 unmodified lines
NoThin: targetFeatures.NoThin,
}
s.target.pusher = gitproto.NewPusher(targetConn, targetAdv, cfg.Verbose)
s.target.pusher.MaxRefUpdates = cfg.TargetMaxRefUpdates
s.target.pusher.MaxRefUpdates = cfg.TargetMaxRefUpdates
if cfg.BestEffort {
s.rejections = make(map[plumbing.ReferenceName]string)
s.target.pusher.OnRejection = func(name plumbing.ReferenceName, status string) {
Minternal/syncer/syncer.go+1/-1
297 unmodified lines
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
317
318
319
320
321
297 unmodified lines
return syncer.Config{}, err
}
return syncer.Config{
Source: source,
Target: target,
HTTPClient: c.httpClient,
Branches: append([]string(nil), req.Scope.Branches...),
Mappings: validationMappings(req.Scope.Mappings),
AllRefs: req.Scope.AllRefs,
ExcludeRefPrefixes: append([]string(nil), req.Scope.ExcludeRefPrefixes...),
IncludeTags: req.IncludeTags,
BestEffort: req.BestEffort,
ShowStats: req.Options.CollectStats,
MeasureMemory: req.Options.MeasureMemory,
Progress: req.Options.Progress,
Source: source,
Target: target,
HTTPClient: c.httpClient,
Branches: append([]string(nil), req.Scope.Branches...),
Mappings: validationMappings(req.Scope.Mappings),
AllRefs: req.Scope.AllRefs,
ExcludeRefPrefixes: append([]string(nil), req.Scope.ExcludeRefPrefixes...),
IncludeTags: req.IncludeTags,
BestEffort: req.BestEffort,
ShowStats: req.Options.CollectStats,
MeasureMemory: req.Options.MeasureMemory,
Progress: req.Options.Progress,
MaxPackBytes: req.Options.MaxPackBytes,
TargetMaxPackBytes: req.Options.TargetMaxPackBytes,
TargetMaxRefUpdates: req.Options.TargetMaxRefUpdates,
ProtocolMode: protocolString(req.Protocol),
Verbose: req.Options.Verbose,
BootstrapStrategy: req.Options.BootstrapStrategy,
Verbose: req.Options.Verbose,
BootstrapStrategy: req.Options.BootstrapStrategy,
}, nil
}
Munstable/client.go+14/-14