summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2015-10-15 15:58:05 +0200
committerPatrick Steinhardt <ps@pks.im>2017-02-13 10:28:15 +0100
commit79ab3ef69f4905a548bd3a301c348a48454c48f7 (patch)
treea707b6af1e5ed933366acfe5ea1118551e343160 /include/git2
parentc5f3da9692f8de15550fed47e377c586f99f7c5a (diff)
downloadlibgit2-79ab3ef69f4905a548bd3a301c348a48454c48f7.tar.gz
repository: introduce is_worktree variable
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/repository.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h
index 74ce4c795..8cf7e8e0c 100644
--- a/include/git2/repository.h
+++ b/include/git2/repository.h
@@ -468,6 +468,14 @@ GIT_EXTERN(int) git_repository_set_workdir(
GIT_EXTERN(int) git_repository_is_bare(git_repository *repo);
/**
+ * Check if a repository is a linked work tree
+ *
+ * @param repo Repo to test
+ * @return 1 if the repository is a linked work tree, 0 otherwise.
+ */
+GIT_EXTERN(int) git_repository_is_worktree(git_repository *repo);
+
+/**
* Get the configuration file for this repository.
*
* If a configuration file has not been set, the default