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

Method gitConfig

git/config.go:216–226  ·  view source on GitHub ↗
(args ...string)

Source from the content-addressed store, hash-verified

214}
215
216func (c *Configuration) gitConfig(args ...string) (string, error) {
217 args = append([]string{"config", "--includes"}, args...)
218 cmd, err := subprocess.ExecCommand("git", args...)
219 if err != nil {
220 return "", err
221 }
222 if len(c.GitDir) > 0 {
223 cmd.Dir = c.GitDir
224 }
225 return subprocess.Output(cmd)
226}
227
228func (c *Configuration) gitConfigWrite(args ...string) (string, error) {
229 if c.readOnly {

Callers 10

FindMethod · 0.95
FindGlobalMethod · 0.95
FindSystemMethod · 0.95
FindLocalMethod · 0.95
FindWorktreeMethod · 0.95
FindFileMethod · 0.95
FileSourceMethod · 0.95
RevisionSourceMethod · 0.95
SourceMethod · 0.95
gitConfigWriteMethod · 0.95

Calls 2

ExecCommandFunction · 0.92
OutputFunction · 0.92

Tested by

no test coverage detected