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

Method MergeFastForward

pkg/cmd/repo/sync/git.go:94–102  ·  view source on GitHub ↗
(ref string)

Source from the content-addressed store, hash-verified

92}
93
94func (g *gitExecuter) MergeFastForward(ref string) error {
95 args := []string{"merge", "--ff-only", "--quiet", ref}
96 cmd, err := g.client.Command(context.Background(), args...)
97 if err != nil {
98 return err
99 }
100 _, err = cmd.Output()
101 return err
102}
103
104func (g *gitExecuter) ResetHard(ref string) error {
105 args := []string{"reset", "--hard", ref}

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80
OutputMethod · 0.65

Tested by

no test coverage detected