/// <exception cref="System.Exception"></exception> internal CommitBuilder(TestRepository _enclosing, TestRepository.BranchBuilder b) { this._enclosing = _enclosing; this.branch = b; Ref @ref = this._enclosing.db.GetRef(this.branch.@ref); if (@ref != null) { this.Parent(this._enclosing.pool.ParseCommit(@ref.GetObjectId())); } }
/// <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()); }
public CommitBuilder(TestRepository _enclosing) { this._enclosing = _enclosing; this.branch = null; }