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

Method EncodeLocks

locking/locks.go:482–484  ·  view source on GitHub ↗
(locks []Lock, writer io.Writer)

Source from the content-addressed store, hash-verified

480}
481
482func (c *Client) EncodeLocks(locks []Lock, writer io.Writer) error {
483 return json.NewEncoder(writer).Encode(locks)
484}
485
486func (c *Client) EncodeLocksVerifiable(ourLocks, theirLocks []Lock, writer io.Writer) error {
487 return json.NewEncoder(writer).Encode(&lockVerifiableList{

Callers 2

SearchLocksMethod · 0.95
locksCommandFunction · 0.80

Calls 1

EncodeMethod · 0.80

Tested by

no test coverage detected