(ctx context.Context, name, resolution string)
| 200 | } |
| 201 | |
| 202 | func (c *Client) SetRemoteResolution(ctx context.Context, name, resolution string) error { |
| 203 | args := []string{"config", "--add", fmt.Sprintf("remote.%s.gh-resolved", name), resolution} |
| 204 | cmd, err := c.Command(ctx, args...) |
| 205 | if err != nil { |
| 206 | return err |
| 207 | } |
| 208 | _, err = cmd.Output() |
| 209 | if err != nil { |
| 210 | return err |
| 211 | } |
| 212 | return nil |
| 213 | } |
| 214 | |
| 215 | // CurrentBranch reads the checked-out branch for the git repository. |
| 216 | func (c *Client) CurrentBranch(ctx context.Context) (string, error) { |