summaryrefslogtreecommitdiff
path: root/examples/diff.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-04-15 13:29:40 -0700
committerBen Straub <bs@github.com>2013-04-15 13:29:40 -0700
commit201566539f38874b4e93c6a36593bd0d10e6352c (patch)
treeb7475fa99d7d170096f8c771cb9cc0836be819b4 /examples/diff.c
parent5961d5ea7f77cc442ec7d7c9f698f8c96c050298 (diff)
downloadlibgit2-201566539f38874b4e93c6a36593bd0d10e6352c.tar.gz
Clean up minor details
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)) {