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 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
9 *******************************************************************************/
10 package org
.eclipse
.egit
.core
.internal
.storage
;
12 import org
.spearce
.jgit
.revwalk
.RevCommitList
;
14 class KidCommitList
extends RevCommitList
<KidCommit
> {
16 protected void enter(final int index
, final KidCommit e
) {
17 final int nParents
= e
.getParentCount();
18 for (int i
= 0; i
< nParents
; i
++)
19 ((KidCommit
) e
.getParent(i
)).addChild(e
);