summaryrefslogtreecommitdiff
path: root/examples/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/log.c')
-rw-r--r--examples/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/log.c b/examples/log.c
index 2ba5aa52a..30de16ae9 100644
--- a/examples/log.c
+++ b/examples/log.c
@@ -388,7 +388,7 @@ int main(int argc, char *argv[])
check(git_diff_tree_to_tree(
&diff, git_commit_owner(commit), a, b, &diffopts),
"Diff commit with parent", NULL);
- check(git_diff_print_patch(diff, print_diff, NULL),
+ check(git_diff_print(diff, GIT_DIFF_FORMAT_PATCH, print_diff, NULL),
"Displaying diff", NULL);
git_diff_free(diff);