Browse Source

Move BaseReceivePack#walk getter to ReceivePack

Another step toward merging BaseReceivePack into ReceivePack.

Change-Id: I43cf2e36e2d5b0cd85bf23c81469909c14757b63
Signed-off-by: Jonathan Nieder <jrn@google.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.3
Jonathan Nieder 6 years ago committed by Matthias Sohn
parent
commit
939723807e
  1. 6
      org.eclipse.jgit/.settings/.api_filters
  2. 8
      org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java
  3. 11
      org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

6
org.eclipse.jgit/.settings/.api_filters

@ -43,6 +43,12 @@
<message_argument value="getRepository()"/>
</message_arguments>
</filter>
<filter id="421650549">
<message_arguments>
<message_argument value="org.eclipse.jgit.transport.BaseReceivePack"/>
<message_argument value="getRevWalk()"/>
</message_arguments>
</filter>
<filter id="421650549">
<message_arguments>
<message_argument value="org.eclipse.jgit.transport.BaseReceivePack"/>

8
org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java

@ -154,7 +154,7 @@ public abstract class BaseReceivePack {
final Repository db;
/** Revision traversal support over {@link #db}. */
private final RevWalk walk;
final RevWalk walk;
/**
* Is the client connection a bi-directional socket or pipe?
@ -430,10 +430,10 @@ public abstract class BaseReceivePack {
* Get the RevWalk instance used by this connection.
*
* @return the RevWalk instance used by this connection.
* @deprecated use {@link ReceivePack#getRevWalk}
*/
public final RevWalk getRevWalk() {
return walk;
}
@Deprecated
public abstract RevWalk getRevWalk();
/**
* Get refs which were advertised to the client.

11
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

@ -60,6 +60,7 @@ import org.eclipse.jgit.lib.ConfigConstants;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.NullProgressMonitor;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.revwalk.RevWalk;
import org.eclipse.jgit.transport.ReceiveCommand.Result;
import org.eclipse.jgit.transport.RefAdvertiser.PacketLineOutRefAdvertiser;
@ -102,6 +103,16 @@ public class ReceivePack extends BaseReceivePack {
return db;
}
/**
* Get the RevWalk instance used by this connection.
*
* @return the RevWalk instance used by this connection.
*/
@Override
public final RevWalk getRevWalk() {
return walk;
}
/**
* Get the push certificate used to verify the pusher's identity.
* <p>

Loading…
Cancel
Save