MCPcopy
hub / github.com/git-lfs/git-lfs / SendMessage

Method SendMessage

ssh/protocol.go:82–94  ·  view source on GitHub ↗
(command string, args []string)

Source from the content-addressed store, hash-verified

80}
81
82func (conn *PktlineConnection) SendMessage(command string, args []string) error {
83 err := conn.pl.WritePacketText(command)
84 if err != nil {
85 return err
86 }
87 for _, arg := range args {
88 err = conn.pl.WritePacketText(arg)
89 if err != nil {
90 return err
91 }
92 }
93 return conn.pl.WriteFlush()
94}
95
96func (conn *PktlineConnection) SendMessageWithLines(command string, args []string, lines []string) error {
97 err := conn.pl.WritePacketText(command)

Callers 8

EndMethod · 0.95
negotiateVersionMethod · 0.95
LockMethod · 0.80
UnlockMethod · 0.80
SearchMethod · 0.80
SearchVerifiableMethod · 0.80
doDownloadMethod · 0.80
verifyUploadMethod · 0.80

Calls 2

WritePacketTextMethod · 0.65
WriteFlushMethod · 0.65

Tested by

no test coverage detected