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 Object
implements AttributesNodeProvider
Implementation a
AttributesNodeProvider
for a
FileRepository
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve theAttributesNode
that holds the information located in the global gitattributes file.Retrieve theAttributesNode
that holds the information located in $GIT_DIR/info/attributes file.(package private) static void
loadRulesFromFile
(AttributesNode r, File attrs)
-
Field Details
-
infoAttributesNode
-
globalAttributesNode
-
-
Constructor Details
-
AttributesNodeProviderImpl
Constructor.- Parameters:
repo
-Repository
that will provide the attribute nodes.
-
-
Method Details
-
getInfoAttributesNode
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:
IOException
- if an error is raised while parsing the attributes file
-
getGlobalAttributesNode
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:
IOException
- java.io.IOException if an error is raised while parsing the attributes file- See Also:
-
loadRulesFromFile
static void loadRulesFromFile(AttributesNode r, File attrs) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-