package
1.5.0
Repository: https://github.com/github/git-sizer.git
Documentation: pkg.go.dev

# Functions

NewObjectHeaderIter returns an `ObjectHeaderIter` that iterates over the headers in a commit or tag object.
NewOID converts an object ID in hex format (i.e., `[0-9a-f]{40}`) into an `OID`.
NewRepository creates a new repository object that can be used for running `git` commands within that repository.
OIDFromBytes converts a byte slice containing an object ID in binary format into an `OID`.
Parse a `cat-file --batch[-check]` output header line (including the trailing LF).
ParseCommit parses the commit object whose contents are in `data`.
ParseReference parses `line` (a non-LF-terminated line) into a `Reference`.
ParseTag parses the Git tag object whose contents are contained in `data`.
ParseTree parses the tree object whose contents are contained in `data`.
PrefixFilter returns a `ReferenceFilter` that matches references whose names start with the specified `prefix`, which must match at a component boundary.
RegexpFilter returns a `ReferenceFilter` that matches references whose names match the specified `prefix`, which must match the whole reference name.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
NullOID is the null object ID; i.e., all zeros.

# Structs

No description provided by the author
BatchObjectIter iterates over objects whose names are fed into its stdin.
Commit represents the parts of a commit object that we need.
Config represents the gitconfig, or part of the gitconfig, read by `ReadConfig()`.
ConfigEntry represents an entry in the gitconfig.
ObjectHeaderIter iterates over the headers within a commit or tag object.
ObjectIter iterates over objects in a Git repository.
No description provided by the author
OID represents the SHA-1 object ID of a Git object, in binary format.
Reference represents a Git reference.
ReferenceIter is an iterator that interates over references.
Repository represents a Git repository on disk.
Tag represents the information that we need about a Git tag object.
Tree represents a Git tree object.
TreeEntry represents an entry in a Git tree object.
TreeIter is an iterator over the entries in a Git tree object.

# Interfaces

Combiner combines two `ReferenceFilter`s into one compound one.
No description provided by the author

# Type aliases

ObjectType represents the type of a Git object ("blob", "tree", "commit", "tag", or "missing").