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:
parent
a06be83045
commit
1f7982f642
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue