diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-15 08:17:45 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-15 08:17:45 +0200 |
commit | d4723c89d4d0f55bf6e93902b50ace6e110fee5f (patch) | |
tree | 437475922f948774a7e52a8b6008c2738309fec0 /tests/diff/diff_helpers.c | |
parent | ae22ef0e5a496330531e5dbb2eabde72ad547d20 (diff) | |
parent | 0e522f6e6a338da722c7197da9af9435a03049d0 (diff) | |
download | libgit2-d4723c89d4d0f55bf6e93902b50ace6e110fee5f.tar.gz |
Merge pull request #3177 from ethomson/binary_diff
Binary diffs: store deltas in the diff structure, include binary data in diff callbacks
Diffstat (limited to 'tests/diff/diff_helpers.c')
-rw-r--r-- | tests/diff/diff_helpers.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/diff/diff_helpers.c b/tests/diff/diff_helpers.c index 03862d6b4..c7352571c 100644 --- a/tests/diff/diff_helpers.c +++ b/tests/diff/diff_helpers.c @@ -91,6 +91,18 @@ int diff_print_file_cb( return diff_file_cb(delta, progress, payload); } +int diff_binary_cb( + const git_diff_delta *delta, + const git_diff_binary *binary, + void *payload) +{ + GIT_UNUSED(delta); + GIT_UNUSED(binary); + GIT_UNUSED(payload); + + return 0; +} + int diff_hunk_cb( const git_diff_delta *delta, const git_diff_hunk *hunk, @@ -145,6 +157,7 @@ int diff_line_cb( int diff_foreach_via_iterator( git_diff *diff, git_diff_file_cb file_cb, + git_diff_binary_cb binary_cb, git_diff_hunk_cb hunk_cb, git_diff_line_cb line_cb, void *data) |