diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-02-07 12:14:28 -0800 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-02 15:49:29 -0800 |
commit | a2e895be820a2fd77285ef4576afe53f68c96ca2 (patch) | |
tree | a086aaaad07d11d17bec91f3660b22a96250df65 /tests-clar/diff/blob.c | |
parent | 5a2f097fdc1408500cff9addf378f86046363665 (diff) | |
download | libgit2-a2e895be820a2fd77285ef4576afe53f68c96ca2.tar.gz |
Continue implementation of git-diff
* Implemented git_diff_index_to_tree
* Reworked git_diff_options structure to handle more options
* Made most of the options in git_diff_options actually work
* Reorganized code a bit to remove some redundancy
* Added option parsing to examples/diff.c to test most options
Diffstat (limited to 'tests-clar/diff/blob.c')
-rw-r--r-- | tests-clar/diff/blob.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests-clar/diff/blob.c b/tests-clar/diff/blob.c index 048b05c7..7aa8ceb2 100644 --- a/tests-clar/diff/blob.c +++ b/tests-clar/diff/blob.c @@ -22,7 +22,7 @@ void test_diff_blob__0(void) { git_blob *a, *b, *c, *d; git_oid a_oid, b_oid, c_oid, d_oid; - git_diff_options opts; + git_diff_options opts = {0}; diff_expects exp; /* tests/resources/attr/root_test1 */ @@ -44,8 +44,7 @@ void test_diff_blob__0(void) /* Doing the equivalent of a `git diff -U1` on these files */ opts.context_lines = 1; - opts.interhunk_lines = 0; - opts.ignore_whitespace = 0; + opts.interhunk_lines = 1; memset(&exp, 0, sizeof(exp)); cl_git_pass(git_diff_blobs( |