diff --git a/src/repo.rs b/src/repo.rs index 3aeac2f1f5..92e1a7f9d5 100644 --- a/src/repo.rs +++ b/src/repo.rs @@ -2418,6 +2418,9 @@ impl Repository { } /// 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`. pub fn graph_descendant_of(&self, commit: Oid, ancestor: Oid) -> Result { unsafe { let rv = try_call!(raw::git_graph_descendant_of(