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

Method UnsetRemoteResolution

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

Source from the content-addressed store, hash-verified

817}
818
819func (c *Client) UnsetRemoteResolution(ctx context.Context, name string) error {
820 args := []string{"config", "--unset", fmt.Sprintf("remote.%s.gh-resolved", name)}
821 cmd, err := c.Command(ctx, args...)
822 if err != nil {
823 return err
824 }
825 _, err = cmd.Output()
826 if err != nil {
827 return err
828 }
829 return nil
830}
831
832func (c *Client) SetRemoteBranches(ctx context.Context, remote string, refspec string) error {
833 args := []string{"remote", "set-branches", remote, refspec}

Callers 2

setDefaultRunFunction · 0.80

Calls 2

CommandMethod · 0.95
OutputMethod · 0.65

Tested by 1