summaryrefslogtreecommitdiff
path: root/tests-clar/diff/rename.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-11-13 13:58:29 -0800
committerRussell Belfer <rb@github.com>2012-11-14 22:54:31 -0800
commit5735bf5e6ab4da347b601d4b85c09c5c701dc002 (patch)
treea6a33b5234bba3ba293af13c91e435213a4223c5 /tests-clar/diff/rename.c
parent5a36f127808c7b470eef17b1a8a130dde0cc64a1 (diff)
downloadlibgit2-5735bf5e6ab4da347b601d4b85c09c5c701dc002.tar.gz
Fix diff API to better parameter order
The diff API is not in the parameter order one would expect from other libgit2 APIs. This fixes that.
Diffstat (limited to 'tests-clar/diff/rename.c')
-rw-r--r--tests-clar/diff/rename.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/diff/rename.c b/tests-clar/diff/rename.c
index 0ee1db842..1ea2e3fc9 100644
--- a/tests-clar/diff/rename.c
+++ b/tests-clar/diff/rename.c
@@ -47,7 +47,7 @@ void test_diff_rename__match_oid(void)
diffopts.flags |= GIT_DIFF_INCLUDE_UNMODIFIED;
cl_git_pass(git_diff_tree_to_tree(
- g_repo, &diffopts, old_tree, new_tree, &diff));
+ &diff, g_repo, old_tree, new_tree, &diffopts));
/* git diff --no-renames \
* 31e47d8c1fa36d7f8d537b96158e3f024de0a9f2 \
@@ -79,7 +79,7 @@ void test_diff_rename__match_oid(void)
git_diff_list_free(diff);
cl_git_pass(git_diff_tree_to_tree(
- g_repo, &diffopts, old_tree, new_tree, &diff));
+ &diff, g_repo, old_tree, new_tree, &diffopts));
/* git diff --find-copies-harder \
* 31e47d8c1fa36d7f8d537b96158e3f024de0a9f2 \