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

Method FixAllLockableFileWriteFlags

locking/lockable.go:68–70  ·  view source on GitHub ↗

FixAllLockableFileWriteFlags recursively scans the repo looking for files which are lockable, and makes sure their write flags are set correctly based on whether they are currently locked or unlocked. Files which are unlocked are made read-only, files which are locked are made writeable. This functi

()

Source from the content-addressed store, hash-verified

66// This function can be used after a clone or checkout to ensure that file
67// state correctly reflects the locking state
68func (c *Client) FixAllLockableFileWriteFlags() error {
69 return c.fixFileWriteFlags(c.LocalWorkingDir, c.LocalWorkingDir, c.getLockableFilter(), nil)
70}
71
72// FixFileWriteFlagsInDir scans dir (which can either be a relative dir
73// from the root of the repo, or an absolute dir within the repo) looking for

Callers 2

postMergeCommandFunction · 0.80
postCheckoutFileChangeFunction · 0.80

Calls 2

fixFileWriteFlagsMethod · 0.95
getLockableFilterMethod · 0.95

Tested by

no test coverage detected