Commit 62ac39314c11ec43e34e2930f990c3d4ad13153b

Patrick Steinhardt 2017-10-06T14:57:02

Merge pull request #4362 from jacwah/graphdoc Document that a commit is not a descendant of itself

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/git2/graph.h b/include/git2/graph.h
index c997d8c..213ae97 100644
--- a/include/git2/graph.h
+++ b/include/git2/graph.h
@@ -40,6 +40,9 @@ GIT_EXTERN(int) git_graph_ahead_behind(size_t *ahead, size_t *behind, git_reposi
 /**
  * Determine if a commit is the descendant of another commit.
  *
+ * Note that a commit is not considered a descendant of itself, in contrast
+ * to `git merge-base --is-ancestor`.
+ *
  * @param commit a previously loaded commit.
  * @param ancestor a potential ancestor commit.
  * @return 1 if the given commit is a descendant of the potential ancestor,