static class FileRepository.AttributesNodeProviderImpl extends java.lang.Object implements AttributesNodeProvider
AttributesNodeProvider for a
FileRepository.| Modifier and Type | Field and Description |
|---|---|
private AttributesNode |
globalAttributesNode |
private AttributesNode |
infoAttributesNode |
| Modifier | Constructor and Description |
|---|---|
protected |
AttributesNodeProviderImpl(Repository repo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AttributesNode |
getGlobalAttributesNode()
Retrieve the
AttributesNode that
holds the information located in the global gitattributes file. |
AttributesNode |
getInfoAttributesNode()
Retrieve the
AttributesNode that
holds the information located in $GIT_DIR/info/attributes file. |
(package private) static void |
loadRulesFromFile(AttributesNode r,
java.io.File attrs) |
private AttributesNode infoAttributesNode
private AttributesNode globalAttributesNode
protected AttributesNodeProviderImpl(Repository repo)
repo - Repository that will provide the attribute nodes.public AttributesNode getInfoAttributesNode() throws java.io.IOException
AttributesNodeProviderAttributesNode that
holds the information located in $GIT_DIR/info/attributes file.getInfoAttributesNode in interface AttributesNodeProviderAttributesNode that holds
the information located in $GIT_DIR/info/attributes file.java.io.IOException - if an error is raised while parsing the attributes filepublic AttributesNode getGlobalAttributesNode() throws java.io.IOException
AttributesNodeProviderAttributesNode that
holds the information located in the global gitattributes file.getGlobalAttributesNode in interface AttributesNodeProviderAttributesNode that holds
the information located in the global gitattributes file.java.io.IOException - java.io.IOException if an error is raised while parsing the
attributes fileCoreConfig.getAttributesFile()static void loadRulesFromFile(AttributesNode r, java.io.File attrs) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOException