]> git.proxmox.com Git - libgit2.git/commit
worktree: implement locking mechanisms
authorPatrick Steinhardt <ps@pks.im>
Wed, 21 Oct 2015 14:03:04 +0000 (16:03 +0200)
committerPatrick Steinhardt <ps@pks.im>
Mon, 13 Feb 2017 10:01:09 +0000 (11:01 +0100)
commit2a503485fae6c93c76bd0465c8b3fad5d9e19f6d
tree37fb761871bdbd1acfa6feea714c177d7c9cd3dc
parentdea7488e93bdd9a0291d518af58b1cde6d71aca9
worktree: implement locking mechanisms

Working trees support locking by creating a file `locked` inside
the tree's gitdir with an optional reason inside. Support this
feature by adding functions to get and set the locking status.
include/git2/worktree.h
src/worktree.c
src/worktree.h
tests/worktree/worktree.c