Browse Source

ReceivePack: enable overriding filterCommands and executeCommands

Change-Id: Ib923e137f0fadd876434bcc49ebd0c9a4d90b45c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.8
Matthias Sohn 5 years ago committed by David Pursehouse
parent
commit
fc7b003163
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

6
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

@ -1725,15 +1725,17 @@ public class ReceivePack {
* desired status to filter by. * desired status to filter by.
* @return a copy of the command list containing only those commands with * @return a copy of the command list containing only those commands with
* the desired status. * the desired status.
* @since 5.7
*/ */
private List<ReceiveCommand> filterCommands(Result want) { protected List<ReceiveCommand> filterCommands(Result want) {
return ReceiveCommand.filter(commands, want); return ReceiveCommand.filter(commands, want);
} }
/** /**
* Execute commands to update references. * Execute commands to update references.
* @since 5.7
*/ */
private void executeCommands() { protected void executeCommands() {
List<ReceiveCommand> toApply = filterCommands(Result.NOT_ATTEMPTED); List<ReceiveCommand> toApply = filterCommands(Result.NOT_ATTEMPTED);
if (toApply.isEmpty()) if (toApply.isEmpty())
return; return;

Loading…
Cancel
Save