UploadPack: Expose advertised refs to callers

Like ReceivePack, callers that embed UploadPack within their
service may wish to see the set of references that were sent
to the client. We already have the map on hand, it just needs
to be exposed with a getter.

Change-Id: I123b23e475860d5bb968906bef59068985088b7b
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2011-02-14 09:02:57 -08:00
parent a06be83045
commit 1f7982f642
1 changed files with 5 additions and 0 deletions

View File

@ -218,6 +218,11 @@ public final RevWalk getRevWalk() {
return walk;
}
/** @return all refs which were advertised to the client. */
public final Map<String, Ref> getAdvertisedRefs() {
return refs;
}
/** @return timeout (in seconds) before aborting an IO operation. */
public int getTimeout() {
return timeout;