Package org.eclipse.jgit.attributes
Interface AttributesNodeProvider
-
- All Known Implementing Classes:
DfsRepository.EmptyAttributesNodeProvider,FileRepository.AttributesNodeProviderImpl
public interface AttributesNodeProviderAn interface used to retrieve the global and infoAttributesNodes.- Since:
- 4.2
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getInfoAttributesNode
AttributesNode getInfoAttributesNode() throws java.io.IOException
Retrieve theAttributesNodethat holds the information located in $GIT_DIR/info/attributes file.- 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
AttributesNode getGlobalAttributesNode() throws java.io.IOException
Retrieve theAttributesNodethat holds the information located in the global gitattributes file.- 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()
-
-