diff options
| author | Edward Thomson <ethomson@github.com> | 2016-04-25 00:35:48 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@github.com> | 2016-05-26 13:01:09 -0500 |
| commit | 7166bb16659790ae2b398e1e95c752f784f6f1d3 (patch) | |
| tree | 1cc3a26e908ed54f579f5595332ba62bbba5a49c /src/diff.h | |
| parent | 94e488a056942f1bb1ebbe7c9f0c693937726609 (diff) | |
| download | libgit2-7166bb16659790ae2b398e1e95c752f784f6f1d3.tar.gz | |
introduce `git_diff_from_buffer` to parse diffs
Parse diff files into a `git_diff` structure.
Diffstat (limited to 'src/diff.h')
| -rw-r--r-- | src/diff.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/diff.h b/src/diff.h index 153cd350a..2c0e52ca2 100644 --- a/src/diff.h +++ b/src/diff.h @@ -25,6 +25,7 @@ typedef enum { GIT_DIFF_TYPE_UNKNOWN = 0, GIT_DIFF_TYPE_GENERATED = 1, + GIT_DIFF_TYPE_PARSED = 2, } git_diff_origin_t; struct git_diff { @@ -56,5 +57,8 @@ extern int git_diff_delta__format_file_header( extern int git_diff_delta__cmp(const void *a, const void *b); extern int git_diff_delta__casecmp(const void *a, const void *b); +extern int git_diff__entry_cmp(const void *a, const void *b); +extern int git_diff__entry_icmp(const void *a, const void *b); + #endif |
