Skip to content

Commit b7ce5e6

Browse files
committed
fix: Rename git_commit_nth_gen_ancestor's first argument
`git_commit_nth_gen_ancestor`'s first argument has been changed to `ancestor` from the previous `commit` to bring it closer to the actual definition (git2/commit.h line 282) and because the previous name is also used for the second argument.
1 parent 0d1e96f commit b7ce5e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libgit2-sys/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2991,7 +2991,7 @@ extern "C" {
29912991
pub fn git_commit_message_encoding(commit: *const git_commit) -> *const c_char;
29922992
pub fn git_commit_message_raw(commit: *const git_commit) -> *const c_char;
29932993
pub fn git_commit_nth_gen_ancestor(
2994-
commit: *mut *mut git_commit,
2994+
ancestor: *mut *mut git_commit,
29952995
commit: *const git_commit,
29962996
n: c_uint,
29972997
) -> c_int;

0 commit comments

Comments
 (0)