Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xmedeko/sigilock
Simple Git Lock
https://github.com/xmedeko/sigilock
Last synced: about 1 month ago
JSON representation
Simple Git Lock
- Host: GitHub
- URL: https://github.com/xmedeko/sigilock
- Owner: xmedeko
- License: mit
- Created: 2023-10-25T18:45:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-27T11:23:38.000Z (about 1 year ago)
- Last Synced: 2023-10-27T12:27:11.452Z (about 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `sigilock` - Simple Git Lock
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](https://git-scm.com/docs/githooks#_pre_push).)
See also [How to use native git as a key-value store](https://graphite.dev/blog/git-key-value) and [Gerrit NoteDb](https://gerrit-review.googlesource.com/Documentation/note-db.html)
## Usage
Lock file:
```
bin/sigilock.sh lock
```Unlock file:
```
bin/sigilock.sh unlock
```See, who has locked the file:
```
bin/sigilock.sh show
```