git

package
v0.0.0-...-745d1e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(gitURL string, haves map[string]struct{}, msgW io.Writer,
	bwCounter *expvar.Int) (refs map[string]string, r io.ReadCloser, err error)

Fetch fetches the git repo at gitURL and the returns the refs.

It supports git:// and http(s):// URLs.

Sideband messages from the git server are writetn to msgW, and the number of bytes fetched is incremented in bwCounter. bwCounter is incremented here to get fine-grained metrics.

func ParseSmartResponse

func ParseSmartResponse(body io.Reader, gitProto bool) (refs map[string]string, err error)

Types

type GitParseError

type GitParseError struct {
	// contains filtered or unexported fields
}

func (GitParseError) Error

func (e GitParseError) Error() string

type RemoteError

type RemoteError struct {
	Message string
}

func (RemoteError) Error

func (e RemoteError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL