コード例 #1
0
        internal void Apply(Stash stash)
        {
            // Restore the working tree
            Commit wip = _repo.Get <Commit> (stash.CommitId);

            wip.Checkout();
            _repo._internal_repo.Index.write();

            // Restore the index
            Commit index = wip.Parents.Last();

            _repo.Index.GitIndex.ReadTree(index.Tree.InternalTree);
            _repo.Index.GitIndex.write();
        }
コード例 #2
0
ファイル: Branch.cs プロジェクト: dev218/GitSharp
		private void ResetHard(Commit commit)
		{
			commit.Checkout();
			_repo._internal_repo.Index.write();
			Ref.Update("HEAD", commit);
		}
コード例 #3
0
ファイル: Branch.cs プロジェクト: yhtsnda/Bonobo-Git-Server
 private void ResetHard(Commit commit)
 {
     commit.Checkout();
     _repo._internal_repo.Index.write();
     Ref.Update("HEAD", commit);
 }