public class TransferConfig
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TransferConfig.FsckKeyNameHolder |
static class |
TransferConfig.FsckMode
A git configuration value for how to handle a fsck failure of a particular kind.
|
(package private) static class |
TransferConfig.ProtocolVersion
A git configuration variable for which versions of the Git protocol to prefer.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
advertiseSidebandAll |
private boolean |
allowFilter |
private boolean |
allowInvalidPersonIdent |
private boolean |
allowReachableSha1InWant |
private boolean |
allowRefInWant |
private boolean |
allowSidebandAll |
private boolean |
allowTipSha1InWant |
private boolean |
fetchFsck |
private static java.lang.String |
FSCK |
private java.lang.String |
fsckSkipList |
(package private) java.lang.String[] |
hideRefs |
private java.util.EnumSet<ObjectChecker.ErrorType> |
ignore |
static Config.SectionParser<TransferConfig> |
KEY
Key for
Config.get(SectionParser) . |
(package private) TransferConfig.ProtocolVersion |
protocolVersion |
private boolean |
receiveFsck |
private boolean |
safeForMacOS |
private boolean |
safeForWindows |
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. |
(package private) boolean |
hasDefaultRefFilter()
Like
getRefFilter() == RefFilter.DEFAULT , but faster. |
boolean |
isAdvertiseSidebandAll() |
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
|
private ObjectChecker |
newObjectChecker(boolean check) |
ObjectChecker |
newReceiveObjectChecker()
Create checker to verify objects pushed into this repository
|
private ObjectIdSet |
skipList() |
private static final java.lang.String FSCK
public static final Config.SectionParser<TransferConfig> KEY
Config.get(SectionParser)
.private final boolean fetchFsck
private final boolean receiveFsck
private final java.lang.String fsckSkipList
private final java.util.EnumSet<ObjectChecker.ErrorType> ignore
private final boolean allowInvalidPersonIdent
private final boolean safeForWindows
private final boolean safeForMacOS
private final boolean allowRefInWant
private final boolean allowTipSha1InWant
private final boolean allowReachableSha1InWant
private final boolean allowFilter
private final boolean allowSidebandAll
private final boolean advertiseSidebandAll
@Nullable final TransferConfig.ProtocolVersion protocolVersion
final java.lang.String[] hideRefs
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()
private ObjectChecker newObjectChecker(boolean check)
private ObjectIdSet skipList()
public boolean isAllowTipSha1InWant()
public boolean isAllowReachableSha1InWant()
public boolean isAllowFilter()
public boolean isAllowRefInWant()
public boolean isAllowSidebandAll()
isAdvertiseSidebandAll()
for the advertisement)public boolean isAdvertiseSidebandAll()
public RefFilter getRefFilter()
RefFilter
respecting configured
hidden refs.RefFilter
respecting
configured hidden refs.boolean hasDefaultRefFilter()
getRefFilter() == RefFilter.DEFAULT
, but faster.true
if no ref filtering is needed because there
are no configured hidden refs.