jgit/org.eclipse.jgit.pgm.test
Christian Halstrick e406d500de Fix "jgit checkout -f" to overwrite dirty worktree files
CheckoutCommand had a setForce() method. But this didn't correspond
to native git's 'git checkout -f' option. Deprecate the old setForce()
method and move its implementation to a new method setForceRefUpdate()
and use it to implement the -B option in the CLI class Checkout.

Add a setForced() method and use it to fix the associated '-f' option of
the CLI Checkout class to behave like native git's 'git checkout -f'
which overwrites dirty worktree files during checkout.

This is still not fully matching native git's behavior: updating
additionally dirty index entries is not done yet.

Bug: 530771
Change-Id: I776b78eb623b6ea0aca42f681788f2e4b1667f15
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-01-08 10:01:09 +01:00
..
.settings Disable Eclipse warning about unrecognized @SuppressWarnings value 2018-10-17 10:40:36 +09:00
META-INF Prepare 5.3.0-SNAPSHOT builds 2018-12-03 02:32:49 +01:00
src/org/eclipse/jgit SpotBugs: don't rely on default encoding 2018-09-10 00:51:59 +02:00
tst/org/eclipse/jgit/pgm Fix "jgit checkout -f" to overwrite dirty worktree files 2019-01-08 10:01:09 +01:00
.classpath Configure classpath for separate test sources in Eclipse 2018-10-17 11:08:24 +09: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
BUILD Add the args4j jar 2017-09-30 10:04:56 +01: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 (Java8) (de).launch Change JGit minimum execution environment to JavaSE-1.8 2016-09-20 11:32:36 +02:00
org.eclipse.jgit.pgm--All-Tests (Java8).launch Change JGit minimum execution environment to JavaSE-1.8 2016-09-20 11:32:36 +02: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 Capture test coverage and add an aggregate test coverage report 2018-12-21 20:43:07 -05:00