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.
|
| 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 |
isAllowFilter() |
boolean |
isAllowReachableSha1InWant()
Whether to allow clients to request non-tip SHA-1s
|
boolean |
isAllowRefInWant() |
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()
Copyright © 2019 Eclipse JGit Project. All rights reserved.