diff options
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/attributes/AttributesNodeProvider.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/attributes/AttributesNodeProvider.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/attributes/AttributesNodeProvider.java b/org.eclipse.jgit/src/org/eclipse/jgit/attributes/AttributesNodeProvider.java new file mode 100644 index 0000000000..0cf3f39602 --- /dev/null +++ b/org.eclipse.jgit/src/org/eclipse/jgit/attributes/AttributesNodeProvider.java @@ -0,0 +1,48 @@ +/* + * 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 + * {@link org.eclipse.jgit.attributes.AttributesNode}s. + * + * @since 4.2 + */ +public interface AttributesNodeProvider { + + /** + * 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 {@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; + +} |