newDefaultPushTarget is a thin wrapper over defaultPushTarget to help with generic type inference, to reduce verbosity in repeating the parametric type.
(remote remote, branchName string)
| 289 | // newDefaultPushTarget is a thin wrapper over defaultPushTarget to help with |
| 290 | // generic type inference, to reduce verbosity in repeating the parametric type. |
| 291 | func newDefaultPushTarget(remote remote, branchName string) defaultPushTarget { |
| 292 | return defaultPushTarget{ |
| 293 | remote: o.Some(remote), |
| 294 | branchName: branchName, |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | // tryDetermineDefaultPushTarget uses git configuration to make a best guess about where a branch |
| 299 | // is pushed to, and where it would be pushed to if the user ran `git push` with no additional |
no outgoing calls
no test coverage detected