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

Method Remove

tools/kv/keyvaluestore.go:68–74  ·  view source on GitHub ↗

Remove removes the key and its value from the store in memory Changes are not persisted until you call Save()

(key string)

Source from the content-addressed store, hash-verified

66// Remove removes the key and its value from the store in memory
67// Changes are not persisted until you call Save()
68func (k *Store) Remove(key string) {
69 k.mu.Lock()
70 defer k.mu.Unlock()
71
72 delete(k.db, key)
73 k.logChange(removeOperation, key, nil)
74}
75
76// RemoveAll removes all entries from the store
77// These changes are not persisted until you call Save()

Callers 3

TestStoreSimpleFunction · 0.95
TestStoreReduceSizeFunction · 0.95

Calls 3

logChangeMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by 3

TestStoreSimpleFunction · 0.76
TestStoreReduceSizeFunction · 0.76