From a2e895be820a2fd77285ef4576afe53f68c96ca2 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Tue, 7 Feb 2012 12:14:28 -0800 Subject: 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 --- tests-clar/diff/blob.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests-clar/diff/blob.c') diff --git a/tests-clar/diff/blob.c b/tests-clar/diff/blob.c index 048b05c79..7aa8ceb22 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( -- cgit v1.2.1