ReceivePack: enable overriding filterCommands and executeCommands

Change-Id: Ib923e137f0fadd876434bcc49ebd0c9a4d90b45c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2020-01-11 00:26:35 +01:00 committed by David Pursehouse
parent 8ada9048c5
commit fc7b003163
1 changed files with 4 additions and 2 deletions

View File

@ -1725,15 +1725,17 @@ private void failPendingCommands() {
* 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;