]> source.dussan.org Git - jgit.git/commit
Callback in PackWriter & BundleWriter. 86/49486/6
authorYuxuan 'fishy' Wang <fishywang@google.com>
Thu, 4 Jun 2015 23:43:24 +0000 (16:43 -0700)
committerYuxuan 'fishy' Wang <fishywang@google.com>
Tue, 9 Jun 2015 21:11:13 +0000 (14:11 -0700)
commit53be446f6a0a9776c5fd0d507fe11b14d79104c2
treefecd2eb1bee1a80b20afe7a4b8a6e92749a61bb8
parenta89dbbd87e587a8c123c96109136fee536322d1b
Callback in PackWriter & BundleWriter.

Added callback in PackWriter and BundleWriter for the caller to get the
count of objects to write, and a chance to abort the write operation.

Change-Id: I1baeedcc6946b1093652de4a707fe597a577e526
Signed-off-by: Yuxuan 'fishy' Wang <fishywang@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/BundleWriterTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/WriteAbortedException.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/BundleWriter.java