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)
| 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). |
| 50 | func (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. |