Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Dahlby <dahlbyk@gmail.com>2013-10-04 13:13:34 +0400
committernulltoken <emeric.fermas@gmail.com>2013-10-05 22:29:19 +0400
commit8effe572bc3100210354b0d7822ef763f557a087 (patch)
tree57d0b058dfed1cc14adb33cf97c5d6639be1daa6 /LibGit2Sharp/Core/NativeMethods.cs
parent467fbd0ae68783a6f8d9437e8bbdec2d6129928a (diff)
Make RetrieveStatus() reload on-disk index beforehand
Fix #322 and #522
Diffstat (limited to 'LibGit2Sharp/Core/NativeMethods.cs')
-rw-r--r--LibGit2Sharp/Core/NativeMethods.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/LibGit2Sharp/Core/NativeMethods.cs b/LibGit2Sharp/Core/NativeMethods.cs
index dc6417f3..e2f48bc3 100644
--- a/LibGit2Sharp/Core/NativeMethods.cs
+++ b/LibGit2Sharp/Core/NativeMethods.cs
@@ -493,6 +493,9 @@ namespace LibGit2Sharp.Core
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = UniqueId.UniqueIdentifier, MarshalTypeRef = typeof(FilePathMarshaler))] FilePath indexpath);
[DllImport(libgit2)]
+ internal static extern int git_index_read(IndexSafeHandle index);
+
+ [DllImport(libgit2)]
internal static extern int git_index_remove_bypath(
IndexSafeHandle index,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = UniqueId.UniqueIdentifier, MarshalTypeRef = typeof(FilePathMarshaler))] FilePath path);