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

Method SetRemoteResolution

git/client.go:202–213  ·  view source on GitHub ↗
(ctx context.Context, name, resolution string)

Source from the content-addressed store, hash-verified

200}
201
202func (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.
216func (c *Client) CurrentBranch(ctx context.Context) (string, error) {

Callers 6

cloneRunFunction · 0.80
forkRunFunction · 0.80
setDefaultRunFunction · 0.80
handlePushFunction · 0.80

Calls 2

CommandMethod · 0.95
OutputMethod · 0.65