diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-02-07 15:30:18 -0800 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-02 15:49:29 -0800 |
commit | caf71ec081fe4067fff5f1a172e7a2e4bbe7eb0f (patch) | |
tree | b97a9808ceb0e126cf61741dd227439e84caadf8 /tests-clar/diff/diff_helpers.c | |
parent | a2e895be820a2fd77285ef4576afe53f68c96ca2 (diff) | |
download | libgit2-caf71ec081fe4067fff5f1a172e7a2e4bbe7eb0f.tar.gz |
Add tests and fix bugs for diff whitespace options
Once I added tests for the whitespace handling options of
diff, I realized that there were some bugs. This fixes
those and adds the new tests into the test suite.
Diffstat (limited to 'tests-clar/diff/diff_helpers.c')
-rw-r--r-- | tests-clar/diff/diff_helpers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests-clar/diff/diff_helpers.c b/tests-clar/diff/diff_helpers.c index b32c4bc2..80c64803 100644 --- a/tests-clar/diff/diff_helpers.c +++ b/tests-clar/diff/diff_helpers.c @@ -72,9 +72,11 @@ int diff_line_fn( e->line_ctxt++; break; case GIT_DIFF_LINE_ADDITION: + case GIT_DIFF_LINE_ADD_EOFNL: e->line_adds++; break; case GIT_DIFF_LINE_DELETION: + case GIT_DIFF_LINE_DEL_EOFNL: e->line_dels++; break; default: |