summaryrefslogtreecommitdiff
path: root/examples/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/diff.c')
-rw-r--r--examples/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/diff.c b/examples/diff.c
index a977abd3f..2ef405665 100644
--- a/examples/diff.c
+++ b/examples/diff.c
@@ -17,7 +17,7 @@ static int resolve_to_tree(
int err = 0;
git_object *obj = NULL;
- if ((err =git_revparse(&obj, NULL, NULL, repo, identifier)) < 0)
+ if ((err = git_revparse_single(&obj, repo, identifier)) < 0)
return err;
switch (git_object_type(obj)) {