package
0.1.0
Repository: https://github.com/lucas-clemente/git-cr.git
Documentation: pkg.go.dev

# Functions

NewGitRequestHandler makes a handler for the git protocol.

# Constants

GitPull is a pull.
GitPush is a push.

# Variables

ErrorInvalidHandshake occurs if the client presents an invalid handshake.
ErrorInvalidHaveLine occurs if the client sends an invalid have line.
ErrorInvalidPushRefsLine occurs if the client sends an invalid line during ref update.
ErrorInvalidWantLine occurs if the client sends an invalid want line.
ErrorNoHead occurs if a repo has no HEAD.

# Structs

GitRequestHandler handles the git protocol.
A RefUpdate is a delta for a git reference.

# Interfaces

Decoder is used to decode data using pkt-line ACKs are decoded as `nil`.
Encoder is used for sending data via pkt-line Sending a `nil` does an ACK.

# Type aliases

A GitOperation can either be a pull or push.