Another step toward eliminating BaseReceivePack as a separate API. Change-Id: If7b7d5c65a043607a2424211adb479fa33a9077b Signed-off-by: Jonathan Nieder <jrn@google.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>tags/v5.3.0.201901161700-m1
<message_argument value="getPushCertificate()"/> | <message_argument value="getPushCertificate()"/> | ||||
</message_arguments> | </message_arguments> | ||||
</filter> | </filter> | ||||
<filter id="421650549"> | |||||
<message_arguments> | |||||
<message_argument value="org.eclipse.jgit.transport.BaseReceivePack"/> | |||||
<message_argument value="getRepository()"/> | |||||
</message_arguments> | |||||
</filter> | |||||
<filter id="421650549"> | <filter id="421650549"> | ||||
<message_arguments> | <message_arguments> | ||||
<message_argument value="org.eclipse.jgit.transport.BaseReceivePack"/> | <message_argument value="org.eclipse.jgit.transport.BaseReceivePack"/> |
} | } | ||||
/** Database we write the stored objects into. */ | /** Database we write the stored objects into. */ | ||||
private final Repository db; | |||||
final Repository db; | |||||
/** Revision traversal support over {@link #db}. */ | /** Revision traversal support over {@link #db}. */ | ||||
private final RevWalk walk; | private final RevWalk walk; | ||||
* Get the repository this receive completes into. | * Get the repository this receive completes into. | ||||
* | * | ||||
* @return the repository this receive completes into. | * @return the repository this receive completes into. | ||||
* @deprecated use {@link ReceivePack#getRepository} | |||||
*/ | */ | ||||
public final Repository getRepository() { | |||||
return db; | |||||
} | |||||
@Deprecated | |||||
public abstract Repository getRepository(); | |||||
/** | /** | ||||
* Get the RevWalk instance used by this connection. | * Get the RevWalk instance used by this connection. |
postReceive = PostReceiveHook.NULL; | postReceive = PostReceiveHook.NULL; | ||||
} | } | ||||
/** | |||||
* Get the repository this receive completes into. | |||||
* | |||||
* @return the repository this receive completes into. | |||||
*/ | |||||
@Override | |||||
public final Repository getRepository() { | |||||
return db; | |||||
} | |||||
/** | /** | ||||
* Get the push certificate used to verify the pusher's identity. | * Get the push certificate used to verify the pusher's identity. | ||||
* <p> | * <p> |