diff options
author | Ben Straub <bs@github.com> | 2013-08-08 08:54:38 -0700 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-08-08 08:54:38 -0700 |
commit | 5e96f31638fe71a0c76805b1352f437881791d98 (patch) | |
tree | 45c14d45f24bedd86b494ca76f1e4a26909de8cd /src/diff.h | |
parent | bf145a6a2f08add441f55387e5ae7daef58187ae (diff) | |
parent | eb1c1707ab6a399734d9083152c05516af052412 (diff) | |
download | libgit2-5e96f31638fe71a0c76805b1352f437881791d98.tar.gz |
Merge pull request #1738 from libgit2/diff-patch-content-size
Add API for getting at git_diff_patch->content_size
Diffstat (limited to 'src/diff.h')
-rw-r--r-- | src/diff.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/diff.h b/src/diff.h index d1bec00c6..bec7e27d7 100644 --- a/src/diff.h +++ b/src/diff.h @@ -82,6 +82,13 @@ extern const char *git_diff_delta__path(const git_diff_delta *delta); extern bool git_diff_delta__should_skip( const git_diff_options *opts, const git_diff_delta *delta); +extern int git_diff_delta__format_file_header( + git_buf *out, + const git_diff_delta *delta, + const char *oldpfx, + const char *newpfx, + int oid_strlen); + extern int git_diff__oid_for_file( git_repository *, const char *, uint16_t, git_off_t, git_oid *); |