summaryrefslogtreecommitdiff
path: root/include/git2/worktree.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2015-10-27 12:37:51 +0100
committerPatrick Steinhardt <ps@pks.im>2017-02-13 11:03:01 +0100
commit04fb12abb24810391fa19af5696eb38629d650df (patch)
treecd926fbf2e9e3172ea9d0618efe6505e06089657 /include/git2/worktree.h
parentf0cfc34105fd68af9eb6e2024459c40c45e7d3a0 (diff)
downloadlibgit2-04fb12abb24810391fa19af5696eb38629d650df.tar.gz
worktree: implement functions reading HEAD
Implement `git_repository_head_for_worktree` and `git_repository_head_detached_for_worktree` for directly accessing a worktree's HEAD without opening it as a `git_repository` first.
Diffstat (limited to 'include/git2/worktree.h')
-rw-r--r--include/git2/worktree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/worktree.h b/include/git2/worktree.h
index 594ff795b..ec869fb59 100644
--- a/include/git2/worktree.h
+++ b/include/git2/worktree.h
@@ -77,7 +77,7 @@ GIT_EXTERN(int) git_worktree_validate(const git_worktree *wt);
*/
GIT_EXTERN(int) git_worktree_add(git_worktree **out, git_repository *repo, const char *name, const char *path);
-/*
+/**
* Lock worktree if not already locked
*
* Lock a worktree, optionally specifying a reason why the linked