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

Method ResultingHelperCategory

pkg/cmd/auth/shared/git_credential.go:154–162  ·  view source on GitHub ↗

ResultingHelperCategory reports the git credential helper in effect after Setup ran, as one of "ours", "other", or "none", or "error" when helper detection failed and no setup replaced it. It reflects the flow's own decisions without re-reading git configuration.

()

Source from the content-addressed store, hash-verified

152// "none", or "error" when helper detection failed and no setup replaced it. It reflects the flow's own decisions
153// without re-reading git configuration.
154func (flow *GitCredentialFlow) ResultingHelperCategory() string {
155 if flow.configuredOurs {
156 return "ours"
157 }
158 if flow.helperDetectErr != nil {
159 return "error"
160 }
161 return helperCategory(flow.helper)
162}
163
164func helperCategory(helper gitcredentials.Helper) string {
165 switch {

Callers 3

refreshRunFunction · 0.95
LoginFunction · 0.80

Calls 1

helperCategoryFunction · 0.85