diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-11-04 19:04:55 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-11-06 20:09:35 +0400 |
commit | d9ecbaed778a2b7450e7c0bf4305179957bb97ad (patch) | |
tree | a69a7d0e450540d21e72990001e679926c4f41e7 /LibGit2Sharp/ContentChanges.cs | |
parent | 7b38c3cb42ec34c4b66f189d37cdc50e557365dc (diff) |
Update libgit2 binaries to e87d9d3
https://github.com/libgit2/libgit2/compare/711333e...e87d9d3
Diffstat (limited to 'LibGit2Sharp/ContentChanges.cs')
-rw-r--r-- | LibGit2Sharp/ContentChanges.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/LibGit2Sharp/ContentChanges.cs b/LibGit2Sharp/ContentChanges.cs index 79214f67..01fb4175 100644 --- a/LibGit2Sharp/ContentChanges.cs +++ b/LibGit2Sharp/ContentChanges.cs @@ -80,34 +80,34 @@ namespace LibGit2Sharp return 0; } - private int HunkCallback(GitDiffDelta delta, GitDiffRange range, IntPtr header, UIntPtr headerlen, IntPtr payload) + private int HunkCallback(GitDiffDelta delta, GitDiffHunk hunk, IntPtr payload) { - string decodedContent = LaxUtf8Marshaler.FromNative(header, (int)headerlen); + string decodedContent = LaxUtf8Marshaler.FromBuffer(hunk.Header, (int)hunk.HeaderLen); AppendToPatch(decodedContent); return 0; } - private int LineCallback(GitDiffDelta delta, GitDiffRange range, GitDiffLineOrigin lineorigin, IntPtr content, UIntPtr contentlen, IntPtr payload) + private int LineCallback(GitDiffDelta delta, GitDiffHunk hunk, GitDiffLine line, IntPtr payload) { - string decodedContent = LaxUtf8Marshaler.FromNative(content, (int)contentlen); + string decodedContent = LaxUtf8Marshaler.FromNative(line.content, (int)line.contentLen); string prefix; - switch (lineorigin) + switch (line.lineOrigin) { case GitDiffLineOrigin.GIT_DIFF_LINE_ADDITION: LinesAdded++; - prefix = Encoding.ASCII.GetString(new[] { (byte)lineorigin }); + prefix = Encoding.ASCII.GetString(new[] { (byte)line.lineOrigin }); break; case GitDiffLineOrigin.GIT_DIFF_LINE_DELETION: LinesDeleted++; - prefix = Encoding.ASCII.GetString(new[] { (byte)lineorigin }); + prefix = Encoding.ASCII.GetString(new[] { (byte)line.lineOrigin }); break; case GitDiffLineOrigin.GIT_DIFF_LINE_CONTEXT: - prefix = Encoding.ASCII.GetString(new[] { (byte)lineorigin }); + prefix = Encoding.ASCII.GetString(new[] { (byte)line.lineOrigin }); break; default: |