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

Function addProtocolFlag

cmd/git-sync/flags.go:45–47  ·  view source on GitHub ↗
(cmd *cobra.Command, mode *protocolModeFlag)

Source from the content-addressed store, hash-verified

43}
44
45func addProtocolFlag(cmd *cobra.Command, mode *protocolModeFlag) {
46 cmd.Flags().Var(mode, "protocol", "protocol mode: auto, v1, or v2")
47}
48
49const (
50 allRefsUsageBestEffort = "mirror every refs/* on the source (branches, tags, notes, pulls, custom namespaces) on a best-effort basis; per-ref server rejections become warnings rather than failing the sync"

Callers 5

newSyncLikeCmdFunction · 0.85
newProbeCmdFunction · 0.85
newFetchCmdFunction · 0.85
newBootstrapCmdFunction · 0.85
newConvertSHA256CmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected