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

Method UnsetRemoteResolution

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

Source from the content-addressed store, hash-verified

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

Callers 2

setDefaultRunFunction · 0.80

Calls 2

CommandMethod · 0.95
OutputMethod · 0.65

Tested by 1