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

Method encodeIdKey

locking/cache.go:85–91  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

83}
84
85func (c *LockCache) encodeIdKey(id string) string {
86 // Safety against accidents
87 if !c.isIdKey(id) {
88 return idKeyPrefix + id
89 }
90 return id
91}
92
93func (c *LockCache) decodeIdKey(key string) string {
94 // Safety against accidents

Callers 3

AddMethod · 0.95
RemoveByPathMethod · 0.95
RemoveByIdMethod · 0.95

Calls 1

isIdKeyMethod · 0.95

Tested by

no test coverage detected