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 theAttributesNodethat holds the information located in the global gitattributes file.Retrieve theAttributesNodethat holds the information located in $GIT_DIR/info/attributes file.(package private) static voidloadRulesFromFile(AttributesNode r, File attrs)
-
Field Details
-
infoAttributesNode
-
globalAttributesNode
-
-
Constructor Details
-
AttributesNodeProviderImpl
Constructor.- Parameters:
repo-Repositorythat will provide the attribute nodes.
-
-
Method Details
-
getInfoAttributesNode
Description copied from interface:AttributesNodeProviderRetrieve theAttributesNodethat holds the information located in $GIT_DIR/info/attributes file.- Specified by:
getInfoAttributesNodein interfaceAttributesNodeProvider- Returns:
- the
AttributesNodethat 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:AttributesNodeProviderRetrieve theAttributesNodethat holds the information located in the global gitattributes file.- Specified by:
getGlobalAttributesNodein interfaceAttributesNodeProvider- Returns:
- the
AttributesNodethat 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:
FileNotFoundExceptionIOException
-