AbstractAdvertiseRefsHook, AdvertiseRefsHookChainpublic interface AdvertiseRefsHook
| Modifier and Type | Field | Description |
|---|---|---|
static AdvertiseRefsHook |
DEFAULT |
A simple hook that advertises the default refs.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
advertiseRefs(BaseReceivePack receivePack) |
Advertise refs for receive-pack.
|
void |
advertiseRefs(UploadPack uploadPack) |
Advertise refs for upload-pack.
|
static final AdvertiseRefsHook DEFAULT
The method implementations do nothing to preserve the default behavior; see
UploadPack.setAdvertisedRefs(java.util.Map) and
BaseReceivePack.setAdvertisedRefs(java.util.Map,java.util.Set).
void advertiseRefs(UploadPack uploadPack) throws ServiceMayNotContinueException
uploadPack - instance on which to call
UploadPack.setAdvertisedRefs(java.util.Map)
if necessary.ServiceMayNotContinueException - abort; the message will be sent to the user.void advertiseRefs(BaseReceivePack receivePack) throws ServiceMayNotContinueException
receivePack - instance on which to call
BaseReceivePack.setAdvertisedRefs(java.util.Map,java.util.Set)
if necessary.ServiceMayNotContinueException - abort; the message will be sent to the user.Copyright © 2018. All rights reserved.