package
0.0.5
Repository: https://github.com/microsoft/go-infra.git
Documentation: pkg.go.dev

# Functions

Apply runs a Git command to apply the patches in the repository onto the submodule.
FindAncestorConfig finds and reads the config file governing dir.
NewMatchCheckRepo clones the given submodule to a temp repo and prepares to search the patchesDir for a match to each patch passed to Apply.
Read reads and parses a patch from r.
ReadFile reads and parses the named patch file.
WalkGoPatches finds patches in the given Microsoft Go repository root directory and runs fn once per patch file path.
WalkPatches finds patches in the given directory and runs fn once per patch file path.

# Constants

ApplyModeCommits applies patches as commits.
ApplyModeIndex applies patches as changes to the Git index and working tree.
ConfigFileName is the name of the config file on disk.

# Structs

Config is the patch config file content.
FoundConfig is a Config file's contents plus the location the config file was found, the RootDir.
Header is the part of a Git patch file before the "---".
MatchCheckRepo checks whether each patch in a series of patches makes actual changes, or if it is equivalent to an existing patch.
Patch is a parsed Git patch file.

# Type aliases

No description provided by the author