diff options
author | yorah <yoram.harmelin@gmail.com> | 2012-08-29 20:05:47 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-08-29 22:14:31 +0400 |
commit | eb304fb0c92df60339836b962a96a3d43f48d7f7 (patch) | |
tree | b49ad08201406d354304010c5f17d241d1b99c3c /LibGit2Sharp/ContentChanges.cs | |
parent | 8fa70ffce8bca7ff66fe4b84293d14b66bbed29f (diff) |
Make retrieval of error message thread-safe
Fix #203
Diffstat (limited to 'LibGit2Sharp/ContentChanges.cs')
-rw-r--r-- | LibGit2Sharp/ContentChanges.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/LibGit2Sharp/ContentChanges.cs b/LibGit2Sharp/ContentChanges.cs index 0ee4782c..a8d395ba 100644 --- a/LibGit2Sharp/ContentChanges.cs +++ b/LibGit2Sharp/ContentChanges.cs @@ -17,11 +17,7 @@ namespace LibGit2Sharp internal ContentChanges(Repository repo, Blob oldBlob, Blob newBlob, GitDiffOptions options) { - using (var osw1 = new ObjectSafeWrapper(oldBlob.Id, repo)) - using (var osw2 = new ObjectSafeWrapper(newBlob.Id, repo)) - { - Ensure.Success(NativeMethods.git_diff_blobs(osw1.ObjectPtr, osw2.ObjectPtr, options, IntPtr.Zero, FileCallback, HunkCallback, LineCallback)); - } + Proxy.git_diff_blobs(repo.Handle, oldBlob, newBlob, options, FileCallback, HunkCallback, LineCallback); } private int FileCallback(IntPtr data, GitDiffDelta delta, float progress) |