Skip to content

Commit 763e576

Browse files
committed
note that a commit is not a descendant of itself
1 parent 49879e9 commit 763e576

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/repo.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,6 +2418,9 @@ impl Repository {
24182418
}
24192419

24202420
/// Determine if a commit is the descendant of another commit
2421+
///
2422+
/// Note that a commit is not considered a descendant of itself, in contrast
2423+
/// to `git merge-base --is-ancestor`.
24212424
pub fn graph_descendant_of(&self, commit: Oid, ancestor: Oid) -> Result<bool, Error> {
24222425
unsafe {
24232426
let rv = try_call!(raw::git_graph_descendant_of(

0 commit comments

Comments
 (0)