1 /*
2 * Copyright (C) 2011, GEBIT Solutions and others
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Distribution License v. 1.0 which is available at
6 * https://www.eclipse.org/org/documents/edl-v10.php.
7 *
8 * SPDX-License-Identifier: BSD-3-Clause
9 */
10 package org.eclipse.jgit.revwalk;
11
12 import org.eclipse.jgit.diff.DiffEntry;
13
14 /**
15 * An instance of this class can be used in conjunction with a
16 * {@link org.eclipse.jgit.revwalk.FollowFilter}. Whenever a rename has been
17 * detected during a revision walk, it will be reported here.
18 *
19 * @see FollowFilter#setRenameCallback(RenameCallback)
20 */
21 public abstract class RenameCallback {
22 /**
23 * Called whenever a diff was found that is actually a rename or copy of a
24 * file.
25 *
26 * @param entry
27 * the entry representing the rename/copy
28 */
29 public abstract void renamed(DiffEntry entry);
30 }