MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / decodeIdKey

Method decodeIdKey

locking/cache.go:93–99  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

91}
92
93func (c *LockCache) decodeIdKey(key string) string {
94 // Safety against accidents
95 if c.isIdKey(key) {
96 return key[len(idKeyPrefix):]
97 }
98 return key
99}
100
101func (c *LockCache) isIdKey(key string) bool {
102 return strings.HasPrefix(key, idKeyPrefix)

Callers

nothing calls this directly

Calls 1

isIdKeyMethod · 0.95

Tested by

no test coverage detected