MCPcopy Create free account
hub / github.com/go-git/go-git / formatCommand

Function formatCommand

plumbing/protocol/packp/updreq_encode.go:73–77  ·  view source on GitHub ↗
(cmd *Command)

Source from the content-addressed store, hash-verified

71}
72
73func formatCommand(cmd *Command) string {
74 o := cmd.Old.String()
75 n := cmd.New.String()
76 return fmt.Sprintf("%s %s %s", o, n, cmd.Name)
77}
78
79func (req *ReferenceUpdateRequest) encodeOptions(e *pktline.Encoder,
80 opts []*Option) error {

Callers 1

encodeCommandsMethod · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected