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.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
allowInvalidPersonIdent |
private boolean |
allowReachableSha1InWant |
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) . |
private boolean |
receiveFsck |
private boolean |
safeForMacOS |
private boolean |
safeForWindows |
Constructor and Description |
---|
TransferConfig(Config rc) |
TransferConfig(Repository db) |
Modifier and Type | Method and Description |
---|---|
RefFilter |
getRefFilter()
Get
RefFilter respecting configured
hidden refs. |
boolean |
isAllowReachableSha1InWant()
Whether to allow clients to request non-tip SHA-1s
|
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 allowTipSha1InWant
private final boolean allowReachableSha1InWant
final java.lang.String[] hideRefs
TransferConfig(Repository db)
TransferConfig(Config rc)
@Nullable public ObjectChecker newObjectChecker()
@Nullable public ObjectChecker newReceiveObjectChecker()
private ObjectChecker newObjectChecker(boolean check)
private ObjectIdSet skipList()
public boolean isAllowTipSha1InWant()
public boolean isAllowReachableSha1InWant()