]> source.dussan.org Git - jgit.git/commit
Adds DiffEntry.scan(TreeWalk, boolean) method 19/3819/10
authorDariusz Luksza <dariusz@luksza.org>
Wed, 17 Aug 2011 10:43:35 +0000 (12:43 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 17 Aug 2011 10:43:35 +0000 (12:43 +0200)
commit679cab9b3297e550a9ae04b88ba839dc9eb84957
tree15ef803c3e8591f1fbbff74f84988e3746b788fe
parent100e9429b5a7eea8383c6e693d17b6233794c488
Adds DiffEntry.scan(TreeWalk, boolean) method

Adds method into DiffEntry class that allows to specify whether changed
trees are included in scanning result list. By default changed trees
aren't added, but in some cases having changed tree would be useful.

Also adds check for tree count in TreeWalk and when it is different from
two it will thrown an IllegalArgumentException.

This change is required by egit
I7ddb21e7ff54333dd6d7ace3209bbcf83da2b219

Change-Id: I5a680a73e1cffa18ade3402cc86008f46c1da1f1
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/META-INF/MANIFEST.MF
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffEntryTest.java [new file with mode: 0644]
org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffEntry.java