Browse Source

ReceivePack: enable overriding filterCommands and executeCommands

Change-Id: Ib923e137f0fadd876434bcc49ebd0c9a4d90b45c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v5.7.0.202002241735-m3
Matthias Sohn 4 years ago
parent
commit
fc7b003163
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

+ 4
- 2
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java View File

@@ -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<ReceiveCommand> filterCommands(Result want) {
protected List<ReceiveCommand> filterCommands(Result want) {
return ReceiveCommand.filter(commands, want);
}

/**
* Execute commands to update references.
* @since 5.7
*/
private void executeCommands() {
protected void executeCommands() {
List<ReceiveCommand> toApply = filterCommands(Result.NOT_ATTEMPTED);
if (toApply.isEmpty())
return;

Loading…
Cancel
Save