aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2020-01-11 00:26:35 +0100
committerDavid Pursehouse <david.pursehouse@gmail.com>2020-01-24 15:46:08 +0900
commitfc7b0031631b7af01f44b5d36b7f9f0fab23bf9f (patch)
tree6048e73aae0b11d757c344d8b994a1bea7d20e13 /org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java
parent8ada9048c5add754c3b34851b1bd501ce28b3321 (diff)
downloadjgit-fc7b0031631b7af01f44b5d36b7f9f0fab23bf9f.tar.gz
jgit-fc7b0031631b7af01f44b5d36b7f9f0fab23bf9f.zip
ReceivePack: enable overriding filterCommands and executeCommands
Change-Id: Ib923e137f0fadd876434bcc49ebd0c9a4d90b45c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java
index 8ca09f8ad2..24cd8f3df1 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java
+++ b/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;