public class TransferConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TransferConfig.FsckMode
A git configuration value for how to handle a fsck failure of a particular kind.
|
static class |
TransferConfig.ProtocolVersion
A git configuration variable for which versions of the Git protocol to
prefer.
|
Modifier and Type | Field and Description |
---|---|
static Config.SectionParser<TransferConfig> |
KEY
Key for
Config.get(SectionParser) . |
Constructor and Description |
---|
TransferConfig(Config rc)
Create a configuration honoring settings in a
Config . |
TransferConfig(Repository db)
Create a configuration honoring the repository's settings.
|
Modifier and Type | Method and Description |
---|---|
RefFilter |
getRefFilter()
Get
RefFilter respecting configured
hidden refs. |
boolean |
isAdvertiseObjectInfo() |
boolean |
isAdvertiseSidebandAll() |
boolean |
isAdvertiseWaitForDone() |
boolean |
isAllowFilter() |
boolean |
isAllowReachableSha1InWant()
Whether to allow clients to request non-tip SHA-1s
|
boolean |
isAllowRefInWant() |
boolean |
isAllowSidebandAll() |
boolean |
isAllowTipSha1InWant()
Whether to allow clients to request non-advertised tip SHA-1s
|
ObjectChecker |
newObjectChecker()
Create checker to verify fetched objects
|
ObjectChecker |
newReceiveObjectChecker()
Create checker to verify objects pushed into this repository
|
public static final Config.SectionParser<TransferConfig> KEY
Config.get(SectionParser)
.public TransferConfig(Repository db)
db
- the repository to read settings from. The repository is not
retained by the new configuration, instead its settings are
copied during the constructor.@Nullable public ObjectChecker newObjectChecker()
@Nullable public ObjectChecker newReceiveObjectChecker()
public boolean isAllowTipSha1InWant()
public boolean isAllowReachableSha1InWant()
public boolean isAllowFilter()
public boolean isAllowRefInWant()
public boolean isAllowSidebandAll()
isAdvertiseSidebandAll()
for the advertisement)public boolean isAdvertiseSidebandAll()
public boolean isAdvertiseWaitForDone()
public boolean isAdvertiseObjectInfo()
Copyright © 2021 Eclipse JGit Project. All rights reserved.