Top Description Constructors Methods
org.eclipse.jgit.revwalk

public abstract Class RenameCallback

extends Object
Class Inheritance
Imports
org.eclipse.jgit.diff.DiffEntry

An instance of this class can be used in conjunction with a org.eclipse.jgit.revwalk.FollowFilter. Whenever a rename has been detected during a revision walk, it will be reported here.
See Also
FollowFilter#setRenameCallback(RenameCallback)

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
renamed(DiffEntry
the entry representing the rename/copy
entry
)

Called whenever a diff was found that is actually a rename or copy of a file.

public void
renamed(DiffEntry
the entry representing the rename/copy
entry
,
RevCommit
commit at which callback occurred
commit
)

Called whenever a diff was found that is actually a rename or copy of a file along with the commit that caused it.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RenameCallbackback to summary
public RenameCallback()

Method Detail

renamedback to summary
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:DiffEntry

the entry representing the rename/copy

renamedback to summary
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 RenameCallback#renamed(DiffEntry) function.

Parameters
entry:DiffEntry

the entry representing the rename/copy

commit:RevCommit

commit at which callback occurred

Since
6.7