git

package
v2.0.0-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Receive

func Receive(
	repo, operation, gitHome string,
	channel ssh.Channel,
	fingerprint, username, conndata, receivetype string) error

Receive receives a Git repo. This will only work for git-receive-pack.

Types

type ErrInvalidGitSha

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

ErrInvalidGitSha is returned by NewSha if the given raw sha is invalid for any reason.

func (ErrInvalidGitSha) Error

func (e ErrInvalidGitSha) Error() string

Error is the error interface implementation.

type SHA

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

SHA is the representaton of a git sha

func NewSha

func NewSha(rawSha string) (*SHA, error)

NewSha creates a raw string to a SHA. Returns ErrInvalidGitSha if the sha was invalid.

func (SHA) Full

func (s SHA) Full() string

Full returns the full git sha.

func (SHA) Short

func (s SHA) Short() string

Short returns the first 8 characters of the sha.

Jump to

Keyboard shortcuts

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