Top Description Methods
org.eclipse.jgit.attributes

public Interface AttributesNodeProvider

Known Direct Implementers
org.eclipse.jgit.internal.storage.dfs.DfsRepository.EmptyAttributesNodeProvider, org.eclipse.jgit.internal.storage.file.FileRepository.AttributesNodeProviderImpl
Imports
java.io.IOException, org.eclipse.jgit.lib.CoreConfig

An interface used to retrieve the global and info org.eclipse.jgit.attributes.AttributesNodes.
Since
4.2

Method Summary

Modifier and TypeMethod and Description
public AttributesNode

Returns:

the org.eclipse.jgit.attributes.AttributesNode that holds the information located in the global gitattributes file.
getGlobalAttributesNode
()

Retrieve the org.eclipse.jgit.attributes.AttributesNode that holds the information located in the global gitattributes file.

public AttributesNode

Returns:

the org.eclipse.jgit.attributes.AttributesNode that holds the information located in $GIT_DIR/info/attributes file.
getInfoAttributesNode
()

Retrieve the org.eclipse.jgit.attributes.AttributesNode that holds the information located in $GIT_DIR/info/attributes file.

Method Detail

getGlobalAttributesNodeback to summary
public AttributesNode getGlobalAttributesNode() throws IOException

Retrieve the org.eclipse.jgit.attributes.AttributesNode that holds the information located in the global gitattributes file.

Returns:AttributesNode

the org.eclipse.jgit.attributes.AttributesNode that holds the information located in the global gitattributes file.

Exceptions
IOException:
java.io.IOException if an error is raised while parsing the attributes file
See Also
CoreConfig#getAttributesFile()
getInfoAttributesNodeback to summary
public AttributesNode getInfoAttributesNode() throws IOException

Retrieve the org.eclipse.jgit.attributes.AttributesNode that holds the information located in $GIT_DIR/info/attributes file.

Returns:AttributesNode

the org.eclipse.jgit.attributes.AttributesNode that holds the information located in $GIT_DIR/info/attributes file.

Exceptions
IOException:
if an error is raised while parsing the attributes file