/// <summary>Create a new iterator with no parent and a prefix.</summary> /// <remarks> /// Create a new iterator with no parent and a prefix. /// <p> /// The prefix path supplied is inserted in front of all paths generated by /// this iterator. It is intended to be used when an iterator is being /// created for a subsection of an overall repository and needs to be /// combined with other iterators that are created to run over the entire /// repository namespace. /// </remarks> /// <param name="prefix"> /// position of this iterator in the repository tree. The value /// may be null or the empty string to indicate the prefix is the /// root of the repository. A trailing slash ('/') is /// automatically appended if the prefix does not end in '/'. /// </param> /// <param name="options">working tree options to be used</param> protected internal WorkingTreeIterator(string prefix, WorkingTreeOptions options) : base(prefix) { state = new WorkingTreeIterator.IteratorState(options); }
/// <summary>Create an iterator for a subtree of an existing iterator.</summary> /// <remarks>Create an iterator for a subtree of an existing iterator.</remarks> /// <param name="p">parent tree iterator.</param> protected internal WorkingTreeIterator(NGit.Treewalk.WorkingTreeIterator p) : base (p) { state = p.state; }
/// <summary>Create a new iterator with no parent.</summary> /// <remarks>Create a new iterator with no parent.</remarks> /// <param name="options">working tree options to be used</param> protected internal WorkingTreeIterator(WorkingTreeOptions options) : base() { state = new WorkingTreeIterator.IteratorState(options); }