diff options
author | Russell Belfer <rb@github.com> | 2013-01-30 11:10:39 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-01-30 11:10:39 -0800 |
commit | f1e2735c74d03105592a282e2c32f45033db0e8d (patch) | |
tree | 6bb4ac08b1b90022c61339db67fd5949dc6fced8 /tests-clar/diff/tree.c | |
parent | d2041216578de4e6fbb466d439fac5de7f35caf3 (diff) | |
download | libgit2-f1e2735c74d03105592a282e2c32f45033db0e8d.tar.gz |
Add helper for diff line stats
This adds a `git_diff_patch_line_stats()` API that gets the total
number of adds, deletes, and context lines in a patch. This will
make it a little easier to emulate `git diff --stat` and the like.
Right now, this relies on generating the `git_diff_patch` object,
which is a pretty heavyweight way to get stat information. At
some future point, it would probably be nice to be able to get
this information without allocating the entire `git_diff_patch`,
but that's a much larger project.
Diffstat (limited to 'tests-clar/diff/tree.c')
0 files changed, 0 insertions, 0 deletions