Skip to content

Commit 91ef329

Browse files
author
Aaron Schlesinger
committed
doc(pkg/sshd/server.go): add more godoc for gitPktLine
1 parent 7ed7e34 commit 91ef329

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/sshd/server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,7 @@ func Ping(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt) {
334334
return nil, nil
335335
}
336336

337-
// gitPktLine writes a line following the git protocol
338-
// https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt
337+
// gitPktLine writes a line following the pkt-line git protocol. See https://github.com/git/git/blob/master/Documentation/technical/protocol-common.txt for the protocol and https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt for its usage.
339338
func gitPktLine(w io.Writer, s string) error {
340339
_, err := fmt.Fprintf(w, "%04x%s", len(s)+4, s)
341340
return err

0 commit comments

Comments
 (0)