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

Method EncodeLocksVerifiable

locking/locks.go:486–491  ·  view source on GitHub ↗
(ourLocks, theirLocks []Lock, writer io.Writer)

Source from the content-addressed store, hash-verified

484}
485
486func (c *Client) EncodeLocksVerifiable(ourLocks, theirLocks []Lock, writer io.Writer) error {
487 return json.NewEncoder(writer).Encode(&lockVerifiableList{
488 Ours: ourLocks,
489 Theirs: theirLocks,
490 })
491}
492
493func (c *Client) writeLocksToCacheFile(kind string, writer func(io.Writer) error) error {
494 cacheFile, err := c.prepareCacheDirectory(kind)

Callers 2

SearchLocksVerifiableMethod · 0.95
locksCommandFunction · 0.80

Calls 1

EncodeMethod · 0.80

Tested by

no test coverage detected