We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f177f0f commit c35368bCopy full SHA for c35368b
docs/guides/101-samples/index.md
@@ -593,7 +593,7 @@ const git_oid *tree_id = git_commit_tree_id(commit);
593
~~~c
594
unsigned int count = git_commit_parentcount(commit);
595
for (unsigned int i=0; i<count; i++) {
596
- git_oid *nth_parent_id = git_commit_parent_id(commit);
+ git_oid *nth_parent_id = git_commit_parent_id(commit, i);
597
598
git_commit *nth_parent = NULL;
599
int error = git_commit_parent(&nth_parent, commit, i);
0 commit comments