Proof of concept of simple Git locking implemented using Git objects.
Does not prevent to push commits with a locked file by other user - it's jist proof of concept. (Note: that may be implemented in pre-push
hook.)
See also How to use native git as a key-value store and Gerrit NoteDb
Lock file:
bin/sigilock.sh lock <file>
Unlock file:
bin/sigilock.sh unlock <file>
See, who has locked the file:
bin/sigilock.sh show <file>