MCPcopy Create free account
hub / github.com/entireio/git-sync / Set

Method Set

cmd/git-sync-bench/main.go:477–484  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

475}
476
477func (p *benchProtocolModeFlag) Set(value string) error {
478 mode, err := validation.NormalizeProtocolMode(value)
479 if err != nil {
480 return fmt.Errorf("normalize protocol: %w", err)
481 }
482 *p = benchProtocolModeFlag(benchProtocolMode(gitsync.ProtocolMode(mode)))
483 return nil
484}

Callers

nothing calls this directly

Calls 3

NormalizeProtocolModeFunction · 0.92
benchProtocolModeFlagTypeAlias · 0.85
benchProtocolModeTypeAlias · 0.85

Tested by

no test coverage detected