diff options
author | Russell Belfer <rb@github.com> | 2013-07-23 14:34:31 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-07-23 14:34:31 -0700 |
commit | 197b8966dba18770e4b77a17173c8f354ac175e3 (patch) | |
tree | 773f3621e87acf5543bb0443f8f1ba0437c78719 /tests-clar/diff/blob.c | |
parent | b4a4cf24a539ce07d86fed6835c98154fb40e723 (diff) | |
download | libgit2-197b8966dba18770e4b77a17173c8f354ac175e3.tar.gz |
Add hunk/file headers to git_diff_patch_size
This allows git_diff_patch_size to account for hunk headers and
file headers in the returned size. This required some refactoring
of the code that is used to print file headers so that it could be
invoked by the git_diff_patch_size API.
Also this increases the test coverage and fixes an off-by-one bug
in the size calculation when newline changes happen at the end of
the file.
Diffstat (limited to 'tests-clar/diff/blob.c')
0 files changed, 0 insertions, 0 deletions