diff options
Diffstat (limited to 'org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/KidWalk.java')
-rw-r--r-- | org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/KidWalk.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/KidWalk.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/KidWalk.java new file mode 100644 index 0000000000..9865e377ad --- /dev/null +++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/KidWalk.java @@ -0,0 +1,26 @@ +/******************************************************************************* + * 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.lib.AnyObjectId; +import org.eclipse.jgit.lib.Repository; +import org.eclipse.jgit.revwalk.RevCommit; +import org.eclipse.jgit.revwalk.RevWalk; + +class KidWalk extends RevWalk { + KidWalk(final Repository repo) { + super(repo); + } + + @Override + protected RevCommit createCommit(final AnyObjectId id) { + return new KidCommit(id); + } +} |