Просмотр исходного кода

Move BaseReceivePack#db getter to ReceivePack

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
Jonathan Nieder 5 лет назад
Родитель
Сommit
aaf41a51b7

+ 6
- 0
org.eclipse.jgit/.settings/.api_filters Просмотреть файл

<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"/>

+ 4
- 4
org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java Просмотреть файл

} }


/** 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.

+ 10
- 0
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java Просмотреть файл

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>

Загрузка…
Отмена
Сохранить