Class RenameCallback

java.lang.Object
org.eclipse.jgit.revwalk.RenameCallback

public abstract class RenameCallback extends Object
An instance of this class can be used in conjunction with a FollowFilter. Whenever a rename has been detected during a revision walk, it will be reported here.
See Also:
  • Constructor Details

    • RenameCallback

      public RenameCallback()
  • Method Details

    • renamed

      public abstract void renamed(DiffEntry entry)
      Called whenever a diff was found that is actually a rename or copy of a file.

      Subclass of this class have to override this to receive diffEntry for the rename.

      Parameters:
      entry - the entry representing the rename/copy
    • renamed

      public void renamed(DiffEntry entry, RevCommit commit)
      Called whenever a diff was found that is actually a rename or copy of a file along with the commit that caused it.

      Subclass of this class have an option to override this if it wants to know what commit generated the diffEntry. Otherwise defaults to the renamed(DiffEntry) function.

      Parameters:
      entry - the entry representing the rename/copy
      commit - commit at which callback occurred
      Since:
      6.7