diff options
author | Jack Wickham <jwickham@palantir.com> | 2020-05-22 11:00:18 +0100 |
---|---|---|
committer | Thomas Wolf <thomas.wolf@paranor.ch> | 2020-06-05 15:25:22 -0400 |
commit | 259d2540a3588f70eb123afef75637167674b06d (patch) | |
tree | 5bd6be7326a3847152abdb388e4c06cfb740cdfa | |
parent | 18050b569f9836e67df43ef66e78ace6ca9815d1 (diff) | |
download | jgit-259d2540a3588f70eb123afef75637167674b06d.tar.gz jgit-259d2540a3588f70eb123afef75637167674b06d.zip |
Add getter for unpackErrorHandler in ReceivePack
The current mechanism for updating the unpack error handler requires
that the error handler is replaced entirely, including communicating
the error to the user. Adding a getter means that delegating
implementations can be constructed so that the error can be processed
before sending to the user, for example for logging.
Change-Id: I4b6f78a041d0f6f5b4076a9a5781565ca3857817
Signed-off-by: Jack Wickham <jwickham@palantir.com>
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java index 49413e54f3..79f60c3202 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java @@ -2061,6 +2061,16 @@ public class ReceivePack { } /** + * Get the current unpack error handler. + * + * @return the current unpack error handler. + * @since 5.8 + */ + public UnpackErrorHandler getUnpackErrorHandler() { + return unpackErrorHandler; + } + + /** * @param unpackErrorHandler * the unpackErrorHandler to set * @since 5.7 |