List of usage examples for org.eclipse.jgit.revwalk FollowFilter create
public static FollowFilter create(String path, DiffConfig cfg)
From source file:MyDiffFormatter.java
License:Eclipse Distribution License
private List<DiffEntry> updateFollowFilter(List<DiffEntry> files) { String oldPath = ((FollowFilter) pathFilter).getPath(); for (DiffEntry ent : files) { if (isRename(ent) && ent.getNewPath().equals(oldPath)) { pathFilter = FollowFilter.create(ent.getOldPath(), diffCfg); return Collections.singletonList(ent); }/* w w w . ja v a2 s . c o m*/ } return Collections.emptyList(); }