1 /*******************************************************************************
2 * Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com>
3 * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * See LICENSE for the full license text, also available.
8 *******************************************************************************/
9 package org
.spearce
.egit
.core
.internal
.storage
;
11 import org
.spearce
.jgit
.revwalk
.RevCommitList
;
13 class KidCommitList
extends RevCommitList
<KidCommit
> {
15 protected void enter(final int index
, final KidCommit e
) {
16 final int nParents
= e
.getParentCount();
17 for (int i
= 0; i
< nParents
; i
++)
18 ((KidCommit
) e
.getParent(i
)).addChild(e
);