git

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeRefs added in v0.1.1

func DecodeRefs(reader io.Reader) ([]storage.Reference, error)

func DecodeWants added in v0.2.0

func DecodeWants(ch io.Reader, stor storage.Storage, repo string) (
	[]plumbing.Hash,
	map[plumbing.Hash]bool,
	map[string]bool,
)

func EncodePackfile added in v0.2.0

func EncodePackfile(w io.Writer, objs []storage.Object)

func GenerateReferencePack

func GenerateReferencePack(refs []storage.Reference, http bool, service string, writer io.Writer)

func GetNewObjects added in v0.2.0

func GetNewObjects(
	stor storage.Storage,
	repo string,
	wants []plumbing.Hash,
	haves map[plumbing.Hash]bool,
) []storage.Object

Types

type HaveList added in v0.1.0

type HaveList map[plumbing.Hash]bool

func ParseHaveList added in v0.1.0

func ParseHaveList(hl HaveList, reader io.Reader) (HaveList, error)

type Report added in v0.1.1

func (Report) Write added in v0.1.1

func (r Report) Write(w io.Writer)

type ReportItem added in v0.1.1

type ReportItem struct {
	Ok     bool
	Reason string
}

type WantList added in v0.1.0

type WantList map[plumbing.Hash]bool

func ParseWantList added in v0.1.0

func ParseWantList(wl WantList, reader io.Reader) (WantList, error)

Jump to

Keyboard shortcuts

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