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

Method FileSource

git/config.go:188–198  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

186}
187
188func (c *Configuration) FileSource(filename string) (*ConfigurationSource, error) {
189 if _, err := os.Stat(filename); err != nil {
190 return nil, err
191 }
192
193 out, err := c.gitConfig("-l", "-f", filename)
194 if err != nil {
195 return nil, err
196 }
197 return ParseConfigLines(out, true), nil
198}
199
200func (c *Configuration) RevisionSource(revision string) (*ConfigurationSource, error) {
201 out, err := c.gitConfig("-l", "--blob", revision)

Callers 1

SourcesMethod · 0.95

Calls 2

gitConfigMethod · 0.95
ParseConfigLinesFunction · 0.85

Tested by

no test coverage detected