Skip to content

Commit 3f85678

Browse files
authored
Merge pull request #886 from RalfJung/descendant
note that a commit is not a descendant of itself
2 parents 49879e9 + 763e576 commit 3f85678

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)