jgit/org.eclipse.jgit.pgm.test
Christian Halstrick 5fe44ed3ee Fix DirCacheCheckout to return CheckoutConflictException
Problem occurs when the checkout wants to create a file 'd/f' but
the workingtree contains a dirty file 'd'. In order to create d/f the
file 'd' would have to be deleted and since the file is dirty that
content would be lost. This should lead to a CheckoutConflictException
for d/f when failOnConflict was set to true.

This fix also changes jgit checkout semantics to be more like native
gits checkout semantics. If during a checkout jgit wants to delete a
folder but finds that the working tree contains a dirty file at this
path then JGit will now throw an exception instead of silently keeping
the dirty file. Like in this example:

	git init
	touch b
	git add b
	git commit -m addB
	mkdir a
	touch a/c
	git add a/c
	git commit -m addAC
	rm -fr a
	touch a
	git checkout HEAD~

Change-Id: I9089123179e09dd565285d50b0caa308d290cccd
Signed-off-by: Rüdiger Herrmann <ruediger.herrmann@gmx.de>
Also-by: Rüdiger Herrmann <ruediger.herrmann@gmx.de>
2016-06-23 09:34:22 +02:00
..
.settings Set minimum required Java version to Java 7 2015-02-09 14:11:50 +01:00
META-INF Prepare 4.5.0-SNAPSHOT builds 2016-06-01 23:04:07 +02:00
src/org/eclipse/jgit Make sure CLIGitCommand and Main produce (almost) same results 2016-01-06 17:27:31 -05:00
tst/org/eclipse/jgit/pgm Fix DirCacheCheckout to return CheckoutConflictException 2016-06-23 09:34:22 +02:00
.classpath Set minimum required Java version to Java 7 2015-02-09 14:11:50 +01:00
.gitignore Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
.project Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
BUCK buck: set vm_args for tests 2016-01-01 11:04:11 -08:00
about.html Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
build.properties Add missing resources from source.. in build.properties 2013-10-30 17:42:38 +01:00
org.eclipse.jgit.pgm--All-Tests (Java7).launch Fix classpath of test launch configurations 2015-11-21 00:33:43 +01:00
org.eclipse.jgit.pgm--All-Tests (Java8) (de).launch Fixed few locale dependent pgm tests 2016-01-02 17:41:58 +01:00
org.eclipse.jgit.pgm--All-Tests (Java8).launch Fix classpath of test launch configurations 2015-11-21 00:33:43 +01:00
org.eclipse.jgit.pgm--All-Tests.launch Add the other test launchers as favorites 2013-06-16 23:33:29 +02:00
plugin.properties Fix plugin provider names to conform with release train requirement 2013-04-08 23:05:36 +02:00
pom.xml Prepare 4.5.0-SNAPSHOT builds 2016-06-01 23:04:07 +02:00