Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 4bc9fe16c9f69a679ed0a409681342ef9fda2557 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*******************************************************************************
 * Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com>
 * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/
package org.eclipse.egit.core.internal.storage;

import org.eclipse.jgit.revwalk.RevCommitList;

class KidCommitList extends RevCommitList<KidCommit> {
	@Override
	protected void enter(final int index, final KidCommit e) {
		final int nParents = e.getParentCount();
		for (int i = 0; i < nParents; i++)
			((KidCommit) e.getParent(i)).addChild(e);
	}
}

Back to the top