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

Method Lock

locking/api.go:355–357  ·  view source on GitHub ↗
(remote string, lockReq *lockRequest)

Source from the content-addressed store, hash-verified

353}
354
355func (c *genericLockClient) Lock(remote string, lockReq *lockRequest) (*lockResponse, int, error) {
356 return c.getClient(remote, "upload").Lock(remote, lockReq)
357}
358
359func (c *genericLockClient) Unlock(ref *git.Ref, remote, id string, force bool) (*unlockResponse, int, error) {
360 return c.getClient(remote, "upload").Unlock(ref, remote, id, force)

Callers

nothing calls this directly

Calls 2

getClientMethod · 0.95
LockMethod · 0.65

Tested by

no test coverage detected