From 0c90ce15cbff34d64f32b0a0507d9399c8a02c61 Mon Sep 17 00:00:00 2001 From: Mirco Bauer Date: Thu, 23 Feb 2012 22:42:25 +0100 Subject: [PATCH] Made Index.AddToIndex() and Index.UpdatePhysicalIndex() public for performace reasons --- LibGit2Sharp/Index.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LibGit2Sharp/Index.cs b/LibGit2Sharp/Index.cs index 02f378af5..b629a1e6d 100644 --- a/LibGit2Sharp/Index.cs +++ b/LibGit2Sharp/Index.cs @@ -415,7 +415,7 @@ private bool Enumerate(IEnumerator leftEnum, IEnumerator rightEn throw new ArgumentException("The collection of paths are of different lengths."); } - private void AddToIndex(string relativePath) + public void AddToIndex(string relativePath) { relativePath = PosixPathHelper.ToPosix(relativePath); @@ -453,7 +453,7 @@ private void RestorePotentialPreviousVersionOfHeadIntoIndex(string relativePath) utf8Marshaler.CleanUpNativeData(indexEntry.Path); } - private void UpdatePhysicalIndex() + public void UpdatePhysicalIndex() { int res = NativeMethods.git_index_write(handle); Ensure.Success(res);