stable

Clone or download

Read-only

Implement lock check

This change is part of story #12323 This feature is secured by a feature flag in Forge Config: feature_gitlfs_lock_api It can be tested by using the git lfs client with `git lfs lock` on an already locked file, whatever the ref. Your lock request should be declined. Change-Id: Ic3c05a1241e54c4662acbdf131aad37043556152

Modified Files

Name
M plugins/gitlfs/include/Lock/Controller/LFSLockCreateController.php +21 −0 Go to diff View file
M plugins/gitlfs/include/Lock/Controller/LFSLockDeleteController.php +1 −1 Go to diff View file
M plugins/gitlfs/include/Lock/LockCreator.php +0 −3 Go to diff View file
M plugins/gitlfs/include/Lock/Response/LockResponseBuilder.php +7 −0 Go to diff View file
A plugins/gitlfs/include/Lock/Response/LockResponseConflictErrorRepresentation.php +42 −0 Go to diff View file
M plugins/gitlfs/include/gitlfsPlugin.class.php +4 −0 Go to diff View file
M plugins/gitlfs/phpunit/Lock/Response/LockResponseBuilderTest.php +22 −0 Go to diff View file