Versions in this module Expand all Collapse all v6 v6.1.0 Apr 24, 2021 Changes in this version + const DefaultFetchRefSpec + const DefaultPackWindow + const DefaultPushRefSpec + var ErrInvalid = errors.New("config invalid key in remote or branch") + var ErrModuleBadPath = errors.New("submodule has an invalid path") + var ErrModuleEmptyPath = errors.New("module config: empty path") + var ErrModuleEmptyURL = errors.New("module config: empty URL") + var ErrRefSpecMalformedSeparator = errors.New("malformed refspec, separators are wrong") + var ErrRefSpecMalformedWildcard = errors.New("malformed refspec, mismatched number of wildcards") + var ErrRemoteConfigEmptyName = errors.New("remote config: empty name") + var ErrRemoteConfigEmptyURL = errors.New("remote config: empty URL") + var ErrRemoteConfigNotFound = errors.New("remote config not found") + func MatchAny(l []RefSpec, n plumbing.ReferenceName) bool + func Paths(scope Scope) ([]string, error) + type Branch struct + Merge plumbing.ReferenceName + Name string + Rebase string + Remote string + func (b *Branch) Validate() error + type Config struct + Author struct{ ... } + Branches map[string]*Branch + Committer struct{ ... } + Core struct{ ... } + Init struct{ ... } + Pack struct{ ... } + Raw *format.Config + Remotes map[string]*RemoteConfig + Submodules map[string]*Submodule + URLs map[string]*URL + User struct{ ... } + func LoadConfig(scope Scope) (*Config, error) + func NewConfig() *Config + func ReadConfig(r io.Reader) (*Config, error) + func (c *Config) Marshal() ([]byte, error) + func (c *Config) Unmarshal(b []byte) error + func (c *Config) Validate() error + type ConfigStorer interface + Config func() (*Config, error) + SetConfig func(*Config) error + type Modules struct + Submodules map[string]*Submodule + func NewModules() *Modules + func (m *Modules) Marshal() ([]byte, error) + func (m *Modules) Unmarshal(b []byte) error + type RefSpec string + func (s RefSpec) Dst(n plumbing.ReferenceName) plumbing.ReferenceName + func (s RefSpec) IsDelete() bool + func (s RefSpec) IsExactSHA1() bool + func (s RefSpec) IsForceUpdate() bool + func (s RefSpec) IsWildcard() bool + func (s RefSpec) Match(n plumbing.ReferenceName) bool + func (s RefSpec) Reverse() RefSpec + func (s RefSpec) Src() string + func (s RefSpec) String() string + func (s RefSpec) Validate() error + type RemoteConfig struct + Fetch []RefSpec + Name string + URLs []string + func (c *RemoteConfig) IsFirstURLLocal() bool + func (c *RemoteConfig) Validate() error + type Scope int + const GlobalScope + const LocalScope + const SystemScope + type Submodule struct + Branch string + Name string + Path string + URL string + func (m *Submodule) Validate() error + type URL struct + InsteadOf string + Name string + func (b *URL) Validate() error + func (u *URL) ApplyInsteadOf(url string) string Other modules containing this package github.com/egibert/go-git github.com/egibert/go-git/v5 github.com/egibert/go-git/v8