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 aAttributesNodeProviderfor aFileRepository.
-
-
Field Summary
Fields Modifier and Type Field Description private AttributesNodeglobalAttributesNodeprivate AttributesNodeinfoAttributesNode
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttributesNodeProviderImpl(Repository repo)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributesNodegetGlobalAttributesNode()Retrieve theAttributesNodethat holds the information located in the global gitattributes file.AttributesNodegetInfoAttributesNode()Retrieve theAttributesNodethat holds the information located in $GIT_DIR/info/attributes file.(package private) static voidloadRulesFromFile(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-Repositorythat will provide the attribute nodes.
-
-
Method Detail
-
getInfoAttributesNode
public AttributesNode getInfoAttributesNode() throws java.io.IOException
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:
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: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:
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.FileNotFoundExceptionjava.io.IOException
-
-