java.lang.Object
org.eclipse.jgit.revwalk.RenameCallback
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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Called whenever a diff was found that is actually a rename or copy of a file.void
Called whenever a diff was found that is actually a rename or copy of a file along with the commit that caused it.
-
Constructor Details
-
RenameCallback
public RenameCallback()
-
-
Method Details
-
renamed
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
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/copycommit
- commit at which callback occurred- Since:
- 6.7
-