MCPcopy Create free account
hub / github.com/cli/cli / RecordGitProtocol

Method RecordGitProtocol

pkg/cmd/auth/shared/telemetry.go:50–58  ·  view source on GitHub ↗

RecordGitProtocol captures the git operations protocol selected for the host, as "https" or "ssh", or "unset" when no protocol was explicitly selected (a non-interactive login without the git-protocol flag).

(protocol string)

Source from the content-addressed store, hash-verified

48// RecordGitProtocol captures the git operations protocol selected for the host, as "https" or "ssh", or "unset" when no
49// protocol was explicitly selected (a non-interactive login without the git-protocol flag).
50func (e *AuthTelemetryEvent) RecordGitProtocol(protocol string) {
51 if e == nil {
52 return
53 }
54 if protocol == "" {
55 protocol = "unset"
56 }
57 e.pendingEvent.UpsertDimensions(ghtelemetry.Dimensions{"git_protocol": protocol})
58}
59
60// RecordHelperBefore captures the git credential helper configured before login reconfigured it, as one of "ours",
61// "other", "none", or "error" when the helper could not be read.

Callers 5

refreshRunFunction · 0.80
LoginFunction · 0.80

Calls 1

UpsertDimensionsMethod · 0.65