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