git

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VersionSupported is the packfile version supported by this package
	VersionSupported uint32 = 2

	FirstLengthBits = uint8(4)   // the first byte into object header has 4 bits to store the length
	LengthBits      = uint8(7)   // subsequent bytes has 7 bits to store the length
	MaskFirstLength = 15         // 0000 1111
	MaskContinue    = 0x80       // 1000 0000
	MaskLength      = uint8(127) // 0111 1111
	MaskType        = uint8(112) // 0111 0000
)

Variables

This section is empty.

Functions

func ParseType

func ParseType(b byte) plumbing.ObjectType

Types

This section is empty.

Jump to

Keyboard shortcuts

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