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

Method GetAll

config/url_config.go:41–52  ·  view source on GitHub ↗
(prefix, rawurl, key string)

Source from the content-addressed store, hash-verified

39}
40
41func (c *URLConfig) GetAll(prefix, rawurl, key string) []string {
42 if c == nil {
43 return nil
44 }
45
46 key = strings.ToLower(key)
47 prefix = strings.ToLower(prefix)
48 if v := c.getAll(prefix, rawurl, key); len(v) > 0 {
49 return v
50 }
51 return c.git.GetAll(strings.Join([]string{prefix, key}, "."))
52}
53
54func (c *URLConfig) Bool(prefix, rawurl, key string, def bool) bool {
55 s, _ := c.Get(prefix, rawurl, key)

Callers 1

TestURLConfigFunction · 0.95

Calls 2

getAllMethod · 0.95
GetAllMethod · 0.65

Tested by 1

TestURLConfigFunction · 0.76