java.lang.Object
org.eclipse.jgit.transport.TransferConfig
The standard "transfer", "fetch", "protocol", "receive", and "uploadpack"
configuration parameters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
A git configuration value for how to handle a fsck failure of a particular kind.static enum
A git configuration variable for which versions of the Git protocol to prefer. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Config.SectionParser<TransferConfig>
Key forConfig.get(SectionParser)
. -
Constructor Summary
ConstructorsConstructorDescriptionTransferConfig
(Config rc) Create a configuration honoring settings in aConfig
.Create a configuration honoring the repository's settings. -
Method Summary
Modifier and TypeMethodDescriptionGetRefFilter
respecting configured hidden refs.boolean
Whether to advertise object-info to all clientsboolean
Whether to advertise sideband all to the clientsboolean
Whether to advertise wait-for-done all to the clientsboolean
Whether to allow clients to request any SHA-1sboolean
Whether clients are allowed to specify "filter" lineboolean
Whether to allow clients to request non-tip SHA-1sboolean
Whether to advertise and receive session-id capabilityboolean
Whether clients are allowed to specify "want-ref" lineboolean
Whether the server accepts sideband-all requestsboolean
Whether to allow clients to request non-advertised tip SHA-1sCreate checker to verify fetched objectsCreate checker to verify objects pushed into this repository
-
Field Details
-
KEY
Key forConfig.get(SectionParser)
.
-
-
Constructor Details
-
TransferConfig
Create a configuration honoring the repository's settings.- Parameters:
db
- the repository to read settings from. The repository is not retained by the new configuration, instead its settings are copied during the constructor.- Since:
- 5.1.4
-
TransferConfig
Create a configuration honoring settings in aConfig
.- Parameters:
rc
- the source to read settings from. The source is not retained by the new configuration, instead its settings are copied during the constructor.- Since:
- 5.1.4
-
-
Method Details
-
newObjectChecker
Create checker to verify fetched objects- Returns:
- checker to verify fetched objects, or null if checking is not enabled in the repository configuration.
- Since:
- 3.6
-
newReceiveObjectChecker
Create checker to verify objects pushed into this repository- Returns:
- checker to verify objects pushed into this repository, or null if checking is not enabled in the repository configuration.
- Since:
- 4.2
-
isAllowTipSha1InWant
public boolean isAllowTipSha1InWant()Whether to allow clients to request non-advertised tip SHA-1s- Returns:
- allow clients to request non-advertised tip SHA-1s?
- Since:
- 3.1
-
isAllowReachableSha1InWant
public boolean isAllowReachableSha1InWant()Whether to allow clients to request non-tip SHA-1s- Returns:
- allow clients to request non-tip SHA-1s?
- Since:
- 4.1
-
isAllowAnySha1InWant
public boolean isAllowAnySha1InWant()Whether to allow clients to request any SHA-1s- Returns:
- allow clients to request any SHA-1s?
- Since:
- 6.5
-
isAllowFilter
public boolean isAllowFilter()Whether clients are allowed to specify "filter" line- Returns:
- true if clients are allowed to specify a "filter" line
- Since:
- 5.0
-
isAllowRefInWant
public boolean isAllowRefInWant()Whether clients are allowed to specify "want-ref" line- Returns:
- true if clients are allowed to specify a "want-ref" line
- Since:
- 5.1
-
isAllowSidebandAll
public boolean isAllowSidebandAll()Whether the server accepts sideband-all requests- Returns:
- true if the server accepts sideband-all requests (see
{
isAdvertiseSidebandAll()
for the advertisement) - Since:
- 5.5
-
isAdvertiseSidebandAll
public boolean isAdvertiseSidebandAll()Whether to advertise sideband all to the clients- Returns:
- true to advertise sideband all to the clients
- Since:
- 5.6
-
isAdvertiseWaitForDone
public boolean isAdvertiseWaitForDone()Whether to advertise wait-for-done all to the clients- Returns:
- true to advertise wait-for-done all to the clients
- Since:
- 5.13
-
isAdvertiseObjectInfo
public boolean isAdvertiseObjectInfo()Whether to advertise object-info to all clients- Returns:
- true to advertise object-info to all clients
- Since:
- 5.13
-
isAllowReceiveClientSID
public boolean isAllowReceiveClientSID()Whether to advertise and receive session-id capability- Returns:
- true to advertise and receive session-id capability
- Since:
- 6.4
-
getRefFilter
GetRefFilter
respecting configured hidden refs.- Returns:
RefFilter
respecting configured hidden refs.- Since:
- 3.1
-