package
0.0.0-20220328024126-2ee2aa9d18c6
Repository: https://github.com/nivl/git-go.git
Documentation: pkg.go.dev
# Functions
LoadConfig returns a new Config that fetches the data from the env This is what you want to use to give your users some control over git.
LoadConfigSkipEnv returns a new Config that skips the env and uses the default values.
NewFileAggregate loads all the available config files and returns an object with accessor.
# Constants
DefaultDotGitDirName corresponds to the default name of the git directory.
# Variables
ErrInvalidGitfileFormat is thrown when the file version of the .git is invalid.
ErrNoWorkTreeAlone is thrown when a work tree path is given without a git path.
# Structs
Config represents the config of a repository, whether it's from the various config files or from the options that can be set using the env https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables
If you decide to create a Config by yourself, make sure to set correct values everywhere.
FileAggregate represents the aggregate of all the config files impacting a repository.
LoadConfigOptions represents all the params used to set the default values of a Config object.