Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRepo ¶
A git repository requires: - Either an objects directory or the GIT_OBJECT_DIRECTORY environment variable - A refs directory - Either a HEAD symlink or a HEAD file that is formatted properly
func ObjectFull ¶
Types ¶
type Commit ¶
type Commit struct {
// contains filtered or unexported fields
}
func NewCommitSimple ¶
type HttpHandler ¶
type HttpHandler struct { Repo *Repo // the git repository to operate on // AllowDumb specifies whether or not to allow the "dumb" HTTP protocol. // This version of the protocol supports older clients, but can use // much more bandwidth than the "smart" version. AllowDumb bool }
HttpHandler provides an interface to both smart and dumb HTTP protocols.
func (*HttpHandler) ServeHTTP ¶
func (h *HttpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Id ¶
type Id string
binary representation of an id len == 20, always (except for invalid ids) it's a string so it can be used as a map key
func IdFromBytes ¶
func IdFromString ¶
Click to show internal directories.
Click to hide internal directories.