git-lfs/locking
brian m. carlson 44fb9ecdc7
locking: add flag to control modification of ignored files
In a727fea2 ("locking: remove write permission for ignored files",
2018-08-20), we learned to set and clear the read-only attribute on
ignored files that match the lockable pattern, since "git lfs lock"
operates on pathspecs, not actual files.

However, in doing so, we caused a regression for people who have ignored
files (such as build files) which match the lockable pattern, but should
not have their permissions modified.  Since there is no easy way for us
to know if the user would like their files modified, add a config option
to control this behavior, and leave it at the historical (i.e.,
pre-a727fea2) default, off.  Add documentation accordingly.

Choosing the historical behavior is compatible with the most existing
use cases and preserves the behavior people expect with Git, which is
that it does not touch ignored files.
2019-01-25 15:02:48 +00:00
..
schemas locking: update schemas correctly 2017-12-14 16:27:25 -05:00
api_test.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
api.go lfsapi: add Access param to DoWithAuth() 2018-09-28 14:16:55 -07:00
cache_test.go Refine naming for LockCache methods 2016-12-14 09:44:58 +00:00
cache.go locking: remove dependency on config pkg 2017-01-03 14:13:59 -07:00
lockable.go locking: add flag to control modification of ignored files 2019-01-25 15:02:48 +00:00
locks_test.go Use proper repo permissions when creating directories 2018-12-13 17:51:02 +00:00
locks.go locking: add flag to control modification of ignored files 2019-01-25 15:02:48 +00:00