MCPcopy
hub / github.com/cli/cli / UnsetRemoteResolution

Method UnsetRemoteResolution

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

Source from the content-addressed store, hash-verified

755}
756
757func (c *Client) UnsetRemoteResolution(ctx context.Context, name string) error {
758 args := []string{"config", "--unset", fmt.Sprintf("remote.%s.gh-resolved", name)}
759 cmd, err := c.Command(ctx, args...)
760 if err != nil {
761 return err
762 }
763 _, err = cmd.Output()
764 if err != nil {
765 return err
766 }
767 return nil
768}
769
770func (c *Client) SetRemoteBranches(ctx context.Context, remote string, refspec string) error {
771 args := []string{"remote", "set-branches", remote, refspec}

Callers 2

setDefaultRunFunction · 0.80

Calls 2

CommandMethod · 0.95
OutputMethod · 0.65

Tested by 1