summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/pom.xml
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2017-07-07 11:26:02 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2017-08-15 16:52:00 -0400
commitb13a285098305149b34924bce2679a0cd98d9b2c (patch)
tree1fcbaf3d00e2cd486481f7d8f036f7857bcbbc7d /org.eclipse.jgit.test/pom.xml
parent81d020aba9d48825a70d17a5fefc4b5472795e2e (diff)
downloadjgit-b13a285098305149b34924bce2679a0cd98d9b2c.tar.gz
jgit-b13a285098305149b34924bce2679a0cd98d9b2c.zip
Send a detailed event on working tree modifications
Currently there is no way to determine the precise changes done to the working tree by a JGit command. Only the CheckoutCommand actually provides access to the lists of modified, deleted, and to-be-deleted files, but those lists may be inaccurate (since they are determined up-front before the working tree is modified) if the actual checkout then fails halfway through. Moreover, other JGit commands that modify the working tree do not offer any way to figure out which files were changed. This poses problems for EGit, which may need to refresh parts of the Eclipse workspace when JGit has done java.io file operations. Provide the foundations for better file change tracking: the working tree is modified exclusively in DirCacheCheckout. Make it emit a new type of RepositoryEvent that lists all files that were modified or deleted, even if the checkout failed halfway through. We update the 'updated' and 'removed' lists determined up-front in case of file system problems to reflect the actual state of changes made. EGit thus can register a listener for these events and then knows exactly which parts of the Eclipse workspace may need to be refreshed. Two commands manage checking out individual DirCacheEntries themselves: checkout specific paths, and applying a stash with untracked files. Make those two also emit such a new WorkingTreeModifiedEvent. Furthermore, merges may modify files, and clean, rm, and stash create may delete files. CQ: 13969 Bug: 500106 Change-Id: I7a100aee315791fa1201f43bbad61fbae60b35cb Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.test/pom.xml')
-rw-r--r--org.eclipse.jgit.test/pom.xml1
1 files changed, 0 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/pom.xml b/org.eclipse.jgit.test/pom.xml
index dad1e3cacf..084014c61e 100644
--- a/org.eclipse.jgit.test/pom.xml
+++ b/org.eclipse.jgit.test/pom.xml
@@ -66,7 +66,6 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <scope>test</scope>
</dependency>
<!-- Optional security provider for encryption tests. -->