<snip>
if (capableSideBand) {
int b = in.read();
</snip>
"in" is a SideBandInputStream which writes the messages to the
MessageWriter in SideBandInputStream#doProgressLine.
<snip>
messages.write(msg);
</snip>
The current implementation of the PushProcess gets the messages
(as concatenated string) from the MessageWriter once the push is
finished, PushProcess#execute:
<snip>
} finally {
connection.close();
res.addMessages(connection.getMessages());
}
</snip>
Assuming my understanding is correct, I'd make sure I can pass the
messageWriter my very own OutputStream so that he can write the
messages to it. That would allow me to show them in the Eclipse
Console (or some dialog) as they come in.
I'd love to get your feedback, thoughts.
Thanks!
Cheers
André
-------- Original Message --------
Hi
if you git push via cmd line, you see the response getting in while the
push is occurring.
I was wondering if one could achieve the same with jgit. I only saw
PushResult#getMessage that I may only call once the push was executed.
Transport#push, which returns the result, is blocking. Is there a way to
achieve the same as in git cmd line? Do I miss something? I'd appreciate
any pointers a lot. Thanks!
Cheers
André