Class FileRepository.AttributesNodeProviderImpl
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.file.FileRepository.AttributesNodeProviderImpl
-
- All Implemented Interfaces:
AttributesNodeProvider
- Enclosing class:
- FileRepository
static class FileRepository.AttributesNodeProviderImpl extends java.lang.Object implements AttributesNodeProvider
Implementation aAttributesNodeProvider
for aFileRepository
.
-
-
Field Summary
Fields Modifier and Type Field Description private AttributesNode
globalAttributesNode
private AttributesNode
infoAttributesNode
-
Constructor Summary
Constructors Modifier Constructor Description protected
AttributesNodeProviderImpl(Repository repo)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributesNode
getGlobalAttributesNode()
Retrieve theAttributesNode
that holds the information located in the global gitattributes file.AttributesNode
getInfoAttributesNode()
Retrieve theAttributesNode
that holds the information located in $GIT_DIR/info/attributes file.(package private) static void
loadRulesFromFile(AttributesNode r, java.io.File attrs)
-
-
-
Field Detail
-
infoAttributesNode
private AttributesNode infoAttributesNode
-
globalAttributesNode
private AttributesNode globalAttributesNode
-
-
Constructor Detail
-
AttributesNodeProviderImpl
protected AttributesNodeProviderImpl(Repository repo)
Constructor.- Parameters:
repo
-Repository
that will provide the attribute nodes.
-
-
Method Detail
-
getInfoAttributesNode
public AttributesNode getInfoAttributesNode() throws java.io.IOException
Description copied from interface:AttributesNodeProvider
Retrieve theAttributesNode
that holds the information located in $GIT_DIR/info/attributes file.- Specified by:
getInfoAttributesNode
in interfaceAttributesNodeProvider
- Returns:
- the
AttributesNode
that holds the information located in $GIT_DIR/info/attributes file. - Throws:
java.io.IOException
- if an error is raised while parsing the attributes file
-
getGlobalAttributesNode
public AttributesNode getGlobalAttributesNode() throws java.io.IOException
Description copied from interface:AttributesNodeProvider
Retrieve theAttributesNode
that holds the information located in the global gitattributes file.- Specified by:
getGlobalAttributesNode
in interfaceAttributesNodeProvider
- Returns:
- the
AttributesNode
that holds the information located in the global gitattributes file. - Throws:
java.io.IOException
- java.io.IOException if an error is raised while parsing the attributes file- See Also:
CoreConfig.getAttributesFile()
-
loadRulesFromFile
static void loadRulesFromFile(AttributesNode r, java.io.File attrs) throws java.io.FileNotFoundException, java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
-
-