]> source.dussan.org Git - jgit.git/commit
Don't use API exception in RebaseTodoLine 98/19598/3
authorChristian Halstrick <christian.halstrick@sap.com>
Tue, 10 Dec 2013 10:06:10 +0000 (11:06 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 11 Dec 2013 22:27:36 +0000 (23:27 +0100)
commitea04d2329d1283a3155ff26cfda7c46253f68854
tree208a07979282c836f2378df5fe14bf10f9ae1044
parent3a063a0ed451f3141163745aa57e4102755cc5ef
Don't use API exception in RebaseTodoLine

This came up while testing the proposed buck build for jgit. With buck
we can introduce smaller modules to allow for more concurrency during
build and to better control inner structure of jgit. Trying to put the
porcelain API into a different module than lower level implementation
classes failed since RebaseTodoLine used a porcelain API exception
causing a dependency cycle on the proposed modules. Using an exception
defined on the same abstraction level fixes this problem.

Change-Id: I26a5353e1a8fc23e67d8ce61309bd964f7665bcb
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/errors/IllegalTodoFileModification.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/RebaseTodoLine.java