diff options
author | Russell Belfer <rb@github.com> | 2012-11-13 13:58:29 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-11-14 22:54:31 -0800 |
commit | 5735bf5e6ab4da347b601d4b85c09c5c701dc002 (patch) | |
tree | a6a33b5234bba3ba293af13c91e435213a4223c5 /tests-clar/diff/index.c | |
parent | 5a36f127808c7b470eef17b1a8a130dde0cc64a1 (diff) | |
download | libgit2-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/index.c')
-rw-r--r-- | tests-clar/diff/index.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/diff/index.c b/tests-clar/diff/index.c index eda8f066a..dede9419b 100644 --- a/tests-clar/diff/index.c +++ b/tests-clar/diff/index.c @@ -32,7 +32,7 @@ void test_diff_index__0(void) memset(&exp, 0, sizeof(exp)); - cl_git_pass(git_diff_index_to_tree(g_repo, &opts, a, &diff)); + cl_git_pass(git_diff_index_to_tree(&diff, g_repo, a, &opts)); cl_git_pass(git_diff_foreach( diff, &exp, diff_file_fn, diff_hunk_fn, diff_line_fn)); @@ -60,7 +60,7 @@ void test_diff_index__0(void) diff = NULL; memset(&exp, 0, sizeof(exp)); - cl_git_pass(git_diff_index_to_tree(g_repo, &opts, b, &diff)); + cl_git_pass(git_diff_index_to_tree(&diff, g_repo, b, &opts)); cl_git_pass(git_diff_foreach( diff, &exp, diff_file_fn, diff_hunk_fn, diff_line_fn)); @@ -125,7 +125,7 @@ void test_diff_index__1(void) memset(&exp, 0, sizeof(exp)); - cl_git_pass(git_diff_index_to_tree(g_repo, &opts, a, &diff)); + cl_git_pass(git_diff_index_to_tree(&diff, g_repo, a, &opts)); cl_assert_equal_i( GIT_EUSER, |