Skip to content

Commit 889f1c9

Browse files
authored
Merge pull request libgit2#69 from vivaladav/101-samples
Fixed diff example.
2 parents c35368b + 6bc87af commit 889f1c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides/101-samples/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ error = git_diff_tree_to_workdir_with_index(&diff, repo, tree, NULL);
12151215
[`git_tree_lookup`](http://libgit2.github.com/libgit2/#HEAD/group/tree/git_tree_lookup),
12161216
[`git_diff_tree_to_workdir_with_index`](http://libgit2.github.com/libgit2/#HEAD/group/diff/git_diff_tree_to_workdir_with_index))
12171217

1218-
<h3 id="diff_commit_to_its_parent">Commit to Its Parent</h3>
1218+
<h3 id="diff_commit_to_its_parent">Commit to its Parent</h3>
12191219

12201220
Like `git show <commit>`.
12211221

@@ -1235,7 +1235,7 @@ error = git_commit_tree(&parent_tree, parent);
12351235

12361236
git_diff *diff = NULL;
12371237
error = git_diff_tree_to_tree(
1238-
&diff, repo, commit_tree, parent_tree, NULL);
1238+
&diff, repo, parent_tree, commit_tree, NULL);
12391239
~~~
12401240

12411241
([`git_revparse_single`](http://libgit2.github.com/libgit2/#HEAD/group/revparse/git_revparse_single),

0 commit comments

Comments
 (0)