/// <summary> /// Extended LibGit2Sharp.Repository with the Unite version of the Move command /// </summary> /// <param name = "path"> /// The path to the git repository to open, can be either the path to the git directory (for non-bare repositories this /// would be the ".git" folder inside the working directory) or the path to the working directory. /// </param> /// <param name="options">Runtime command line options specified</param> public UniteRepository(string path, GitUnite.OptionFlags options) : base(path, null) { _options = options; _prepareBatch = Index.GetType().GetMethod( "PrepareBatch", BindingFlags.NonPublic | BindingFlags.Instance, null, new[] { typeof(IEnumerable <string>), typeof(IEnumerable <string>) }, null); _removeFromIndex = Index.GetType().GetMethod("RemoveFromIndex", BindingFlags.NonPublic | BindingFlags.Instance); _addToIndex = Index.GetType().GetMethod("AddToIndex", BindingFlags.NonPublic | BindingFlags.Instance); _updatePhysicalIndex = Index.GetType().GetMethod("UpdatePhysicalIndex", BindingFlags.NonPublic | BindingFlags.Instance); }
/// <summary> /// Extended LibGit2Sharp.Repository with the Unite version of the Move command /// </summary> /// <param name = "path"> /// The path to the git repository to open, can be either the path to the git directory (for non-bare repositories this /// would be the ".git" folder inside the working directory) or the path to the working directory. /// </param> /// <param name="options">Runtime command line options specified</param> public UniteRepository(string path, GitUnite.OptionFlags options) : base(path, null) { _options = options; _prepareBatch = Index.GetType().GetMethod( "PrepareBatch", BindingFlags.NonPublic | BindingFlags.Instance, null, new[] { typeof(IEnumerable<string>), typeof(IEnumerable<string>) }, null); _removeFromIndex = Index.GetType().GetMethod("RemoveFromIndex", BindingFlags.NonPublic | BindingFlags.Instance); _addToIndex = Index.GetType().GetMethod("AddToIndex", BindingFlags.NonPublic | BindingFlags.Instance); _updatePhysicalIndex = Index.GetType().GetMethod("UpdatePhysicalIndex", BindingFlags.NonPublic | BindingFlags.Instance); }