MCPcopy Create free account
hub / github.com/go-git/go-git / Config

Method Config

repository.go:551–553  ·  view source on GitHub ↗

Config return the repository config. In a filesystem backed repository this means read the `.git/config`.

()

Source from the content-addressed store, hash-verified

549// Config return the repository config. In a filesystem backed repository this
550// means read the `.git/config`.
551func (r *Repository) Config() (*config.Config, error) {
552 return r.Storer.Config()
553}
554
555// SetConfig marshall and writes the repository config. In a filesystem backed
556// repository this means write the `.git/config`. This function should be called

Callers 10

RemoteMethod · 0.95
RemotesMethod · 0.95
CreateRemoteMethod · 0.95
DeleteRemoteMethod · 0.95
BranchMethod · 0.95
CreateBranchMethod · 0.95
DeleteBranchMethod · 0.95
setIsBareMethod · 0.95
createNewObjectPackMethod · 0.95

Calls 1

ConfigMethod · 0.65

Tested by

no test coverage detected