From 763e57633ab99c91fab4816573e6d313c5bd7e90 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 1 Oct 2022 12:34:04 +0200 Subject: [PATCH] note that a commit is not a descendant of itself --- src/repo.rs | 3 +++ 1 file changed, 3 insertions(+) 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(