|how to retrieve number of changed lines per resource [message #1727406]
||Tue, 22 March 2016 19:32
| Marc Lustig
Registered: March 2016
hello, we need to find out the number of lines added/changed/removed per resource.|
I'm using the following code to create a diff between two revisions/objectIds:
ObjectReader reader = git.getRepository().newObjectReader();
CanonicalTreeParser oldTreeIter = new CanonicalTreeParser();
CanonicalTreeParser newTreeIter = new CanonicalTreeParser();
List<DiffEntry> diffs = git.diff().setOldTree(oldTreeIter).setNewTree(newTreeIter).call();
But the API for DiffEntry doesn't offer any methods for retrieving the number of changed/added/removed lines for the given resource.
Is there another approach that allows to retrieve that information?
Powered by FUDForum
. Page generated in 0.02447 seconds