]> source.dussan.org Git - jgit.git/commitdiff
ReceivePack: enable overriding filterCommands and executeCommands 38/156038/4
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 10 Jan 2020 23:26:35 +0000 (00:26 +0100)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 24 Jan 2020 06:46:08 +0000 (15:46 +0900)
Change-Id: Ib923e137f0fadd876434bcc49ebd0c9a4d90b45c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

index 8ca09f8ad230db5731de5c0b9fb11809c74f4ed4..24cd8f3df10518800346265b11fa03f12f6438e7 100644 (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;