MCPcopy
hub / github.com/git-lfs/git-lfs / NewConfig

Function NewConfig

git/config.go:36–41  ·  view source on GitHub ↗
(workdir, gitdir string)

Source from the content-addressed store, hash-verified

34}
35
36func NewConfig(workdir, gitdir string) *Configuration {
37 if len(gitdir) == 0 && len(workdir) > 0 {
38 gitdir = filepath.Join(workdir, ".git")
39 }
40 return &Configuration{WorkDir: workdir, GitDir: gitdir}
41}
42
43// NewReadOnlyConfig creates a new configuration that returns an error if an
44// attempt to write to the configuration is made.

Callers 4

NewContextFunction · 0.92
NewInFunction · 0.92
NewFromFunction · 0.92
NewReadOnlyConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected