Exemplo n.º 1
0
            /// <exception cref="System.Exception"></exception>
            internal CommitBuilder(TestRepository _enclosing, TestRepository.CommitBuilder
                                   prior)
            {
                this._enclosing = _enclosing;
                this.branch     = prior.branch;
                DirCacheBuilder b = this.tree.Builder();

                for (int i = 0; i < prior.tree.GetEntryCount(); i++)
                {
                    b.Add(prior.tree.GetEntry(i));
                }
                b.Finish();
                this.parents.AddItem(prior.Create());
            }
Exemplo n.º 2
0
 /// <summary>Forcefully update this branch to a particular commit.</summary>
 /// <remarks>Forcefully update this branch to a particular commit.</remarks>
 /// <param name="to">the commit to update to.</param>
 /// <returns>
 ///
 /// <code>to</code>
 /// .
 /// </returns>
 /// <exception cref="System.Exception">System.Exception</exception>
 public virtual RevCommit Update(TestRepository.CommitBuilder to)
 {
     return(this.Update(to.Create()));
 }