From fc7b0031631b7af01f44b5d36b7f9f0fab23bf9f Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 11 Jan 2020 00:26:35 +0100 Subject: [PATCH] ReceivePack: enable overriding filterCommands and executeCommands Change-Id: Ib923e137f0fadd876434bcc49ebd0c9a4d90b45c Signed-off-by: Matthias Sohn --- .../src/org/eclipse/jgit/transport/ReceivePack.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 8ca09f8ad2..24cd8f3df1 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java @@ -1725,15 +1725,17 @@ public class ReceivePack { * desired status to filter by. * @return a copy of the command list containing only those commands with * the desired status. + * @since 5.7 */ - private List filterCommands(Result want) { + protected List filterCommands(Result want) { return ReceiveCommand.filter(commands, want); } /** * Execute commands to update references. + * @since 5.7 */ - private void executeCommands() { + protected void executeCommands() { List toApply = filterCommands(Result.NOT_ATTEMPTED); if (toApply.isEmpty()) return; -- 2.39.5