public final class FilterSpec extends Object
Modifier and Type | Field and Description |
---|---|
static FilterSpec |
NO_FILTER
A placeholder that indicates no filtering.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsType(int type) |
String |
filterLine() |
static FilterSpec |
fromFilterLine(String filterLine)
Process the content of "filter" line from the protocol.
|
long |
getBlobLimit() |
long |
getTreeDepthLimit() |
boolean |
isNoOp() |
public static final FilterSpec NO_FILTER
public static FilterSpec fromFilterLine(String filterLine) throws PackProtocolException
filterLine
- the content of the "filter" line in the protocolPackProtocolException
- invalid filter because due to unrecognized format or
negative/non-numeric filter.public boolean allowsType(int type)
type
- a Git object type, such as
Constants.OBJ_BLOB
public long getBlobLimit()
public long getTreeDepthLimit()
public boolean isNoOp()
Copyright © 2021 Eclipse JGit Project. All rights reserved.