RenameCallback.java

  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. import org.eclipse.jgit.diff.DiffEntry;

  12. /**
  13.  * An instance of this class can be used in conjunction with a
  14.  * {@link org.eclipse.jgit.revwalk.FollowFilter}. Whenever a rename has been
  15.  * detected during a revision walk, it will be reported here.
  16.  *
  17.  * @see FollowFilter#setRenameCallback(RenameCallback)
  18.  */
  19. public abstract class RenameCallback {
  20.     /**
  21.      * Called whenever a diff was found that is actually a rename or copy of a
  22.      * file.
  23.      *
  24.      * @param entry
  25.      *            the entry representing the rename/copy
  26.      */
  27.     public abstract void renamed(DiffEntry entry);
  28. }