summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorschu <schu-github@schulog.org>2012-02-15 00:12:53 +0100
committerschu <schu-github@schulog.org>2012-02-15 13:07:41 +0100
commitb4b79ac3dbca9088539a10d8d65bfc06504c3c2e (patch)
tree6e44054215a8de00c4b5e2767c187fb133ee1d2f /include/git2/commit.h
parent66faeb5c5d38541c070a02bc53ad0846a4c5fcc9 (diff)
downloadlibgit2-b4b79ac3dbca9088539a10d8d65bfc06504c3c2e.tar.gz
commit: actually allow yet to be born update_ref
git_commit_create is supposed to update the given reference "update_ref", but segfaulted in case of a yet to be born reference. Fix it. Signed-off-by: schu <schu-github@schulog.org>
Diffstat (limited to 'include/git2/commit.h')
-rw-r--r--include/git2/commit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/commit.h b/include/git2/commit.h
index 6d8cf53af..c274b6b95 100644
--- a/include/git2/commit.h
+++ b/include/git2/commit.h
@@ -191,7 +191,8 @@ GIT_EXTERN(const git_oid *) git_commit_parent_oid(git_commit *commit, unsigned i
* will be updated to point to this commit. If the reference
* is not direct, it will be resolved to a direct reference.
* Use "HEAD" to update the HEAD of the current branch and
- * make it point to this commit
+ * make it point to this commit. If the reference doesn't
+ * exist yet, it will be created.
*
* @param author Signature representing the author and the authory
* time of this commit