summaryrefslogtreecommitdiff
path: root/tests-clar/diff/diff_helpers.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-04-29 19:42:51 +0200
committernulltoken <emeric.fermas@gmail.com>2012-04-30 07:12:26 +0200
commit1d2dd864add4835c49744a566c226a1c7da04e99 (patch)
tree6314a29891ef1e652203052aba3bc523793abe2c /tests-clar/diff/diff_helpers.c
parentda3c187d5e3f8dae63014a4dab0dd2c72baed2d5 (diff)
downloadlibgit2-1d2dd864add4835c49744a566c226a1c7da04e99.tar.gz
diff: provide more context to the consumer of the callbacks
Update the callback to provide some information related to the file change being processed and the range of the hunk, when applicable.
Diffstat (limited to 'tests-clar/diff/diff_helpers.c')
-rw-r--r--tests-clar/diff/diff_helpers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests-clar/diff/diff_helpers.c b/tests-clar/diff/diff_helpers.c
index c9a633cd..85dd5260 100644
--- a/tests-clar/diff/diff_helpers.c
+++ b/tests-clar/diff/diff_helpers.c
@@ -60,12 +60,14 @@ int diff_hunk_fn(
int diff_line_fn(
void *cb_data,
git_diff_delta *delta,
+ git_diff_range *range,
char line_origin,
const char *content,
size_t content_len)
{
diff_expects *e = cb_data;
(void)delta;
+ (void)range;
(void)content;
(void)content_len;
e->lines++;