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.c | |
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.c')
-rw-r--r-- | src/diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diff.c b/src/diff.c index c54d3574b..317d49597 100644 --- a/src/diff.c +++ b/src/diff.c @@ -51,7 +51,7 @@ int git_diff_delta__casecmp(const void *a, const void *b) return val ? val : ((int)da->status - (int)db->status); } -static int diff_entry_cmp(const void *a, const void *b) +int git_diff__entry_cmp(const void *a, const void *b) { const git_index_entry *entry_a = a; const git_index_entry *entry_b = b; @@ -59,7 +59,7 @@ static int diff_entry_cmp(const void *a, const void *b) return strcmp(entry_a->path, entry_b->path); } -static int diff_entry_icmp(const void *a, const void *b) +int git_diff__entry_icmp(const void *a, const void *b) { const git_index_entry *entry_a = a; const git_index_entry *entry_b = b; |