Преглед на файлове

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 години
родител
ревизия
fc7b003163
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  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 Целия файл

@@ -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…
Отказ
Запис