]> git.proxmox.com Git - libgit2.git/commit
worktree: implement `git_worktree_validate`
authorPatrick Steinhardt <ps@pks.im>
Wed, 21 Oct 2015 11:49:55 +0000 (13:49 +0200)
committerPatrick Steinhardt <ps@pks.im>
Mon, 13 Feb 2017 09:59:16 +0000 (10:59 +0100)
commit372dc9ff6ada409204b7c3de882e5dad16f30b36
tree7d8535481186bc1cb9060d3083d37bf76b2046d5
parent8c8d726ef784b3f47ed3cd9427202a74563f626e
worktree: implement `git_worktree_validate`

Add a new function that checks wether a given `struct
git_worktree` is valid. The validation includes checking if the
gitdir, parent directory and common directory are present.
include/git2/errors.h
include/git2/worktree.h
src/worktree.c
tests/worktree/worktree.c