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
()
| 66 | // This function can be used after a clone or checkout to ensure that file |
| 67 | // state correctly reflects the locking state |
| 68 | func (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 |
no test coverage detected