/*
* Copyright (C) 2014, Arthur Daussy <arthur.daussy@obeo.fr> and others
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0 which is available at
* https://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package org.eclipse.jgit.attributes;
import java.io.IOException;
import org.eclipse.jgit.lib.CoreConfig;
An interface used to retrieve the global and info AttributesNode
s. Since: 4.2
/**
* An interface used to retrieve the global and info
* {@link org.eclipse.jgit.attributes.AttributesNode}s.
*
* @since 4.2
*/
public interface AttributesNodeProvider {
Retrieve 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
Returns: the AttributesNode
that holds the information located in $GIT_DIR/info/attributes file.
/**
* Retrieve the {@link org.eclipse.jgit.attributes.AttributesNode} that
* holds the information located in $GIT_DIR/info/attributes file.
*
* @return the {@link org.eclipse.jgit.attributes.AttributesNode} that holds
* the information located in $GIT_DIR/info/attributes file.
* @throws java.io.IOException
* if an error is raised while parsing the attributes file
*/
AttributesNode getInfoAttributesNode() throws IOException;
Retrieve 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: Returns: the AttributesNode
that holds the information located in the global gitattributes file.
/**
* Retrieve the {@link org.eclipse.jgit.attributes.AttributesNode} that
* holds the information located in the global gitattributes file.
*
* @return the {@link org.eclipse.jgit.attributes.AttributesNode} that 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 CoreConfig#getAttributesFile()
*/
AttributesNode getGlobalAttributesNode() throws IOException;
}