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.
()
| 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. |
| 154 | func (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 | |
| 164 | func helperCategory(helper gitcredentials.Helper) string { |
| 165 | switch { |