diff options
author | Patrick Steinhardt <ps@pks.im> | 2015-10-21 13:49:55 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-02-13 10:59:16 +0100 |
commit | 372dc9ff6ada409204b7c3de882e5dad16f30b36 (patch) | |
tree | 7d8535481186bc1cb9060d3083d37bf76b2046d5 /include/git2/errors.h | |
parent | 8c8d726ef784b3f47ed3cd9427202a74563f626e (diff) | |
download | libgit2-372dc9ff6ada409204b7c3de882e5dad16f30b36.tar.gz |
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.
Diffstat (limited to 'include/git2/errors.h')
-rw-r--r-- | include/git2/errors.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/git2/errors.h b/include/git2/errors.h index e959ffd8a..1d271366f 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -100,6 +100,7 @@ typedef enum { GITERR_REBASE, GITERR_FILESYSTEM, GITERR_PATCH, + GITERR_WORKTREE } git_error_t; /** |