mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
test: improve coverage (#44)
This commit is contained in:
parent
bad5e20581
commit
7b57c41253
17 changed files with 171 additions and 40 deletions
|
@ -314,11 +314,11 @@ class Commit {
|
|||
///
|
||||
/// Note that a commit is not considered a descendant of itself, in contrast
|
||||
/// to `git merge-base --is-ancestor`.
|
||||
bool descendantOf(Commit ancestor) {
|
||||
bool descendantOf(Oid ancestor) {
|
||||
return graph_bindings.descendantOf(
|
||||
repoPointer: bindings.owner(_commitPointer),
|
||||
commitPointer: bindings.id(_commitPointer),
|
||||
ancestorPointer: bindings.id(ancestor.pointer),
|
||||
ancestorPointer: ancestor.pointer,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue