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);