You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AttributesNodeProvider.java 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2014, Arthur Daussy <arthur.daussy@obeo.fr> and others
  3. *
  4. * This program and the accompanying materials are made available under the
  5. * terms of the Eclipse Distribution License v. 1.0 which is available at
  6. * https://www.eclipse.org/org/documents/edl-v10.php.
  7. *
  8. * SPDX-License-Identifier: BSD-3-Clause
  9. */
  10. package org.eclipse.jgit.attributes;
  11. import java.io.IOException;
  12. import org.eclipse.jgit.lib.CoreConfig;
  13. /**
  14. * An interface used to retrieve the global and info
  15. * {@link org.eclipse.jgit.attributes.AttributesNode}s.
  16. *
  17. * @since 4.2
  18. */
  19. public interface AttributesNodeProvider {
  20. /**
  21. * Retrieve the {@link org.eclipse.jgit.attributes.AttributesNode} that
  22. * holds the information located in $GIT_DIR/info/attributes file.
  23. *
  24. * @return the {@link org.eclipse.jgit.attributes.AttributesNode} that holds
  25. * the information located in $GIT_DIR/info/attributes file.
  26. * @throws java.io.IOException
  27. * if an error is raised while parsing the attributes file
  28. */
  29. AttributesNode getInfoAttributesNode() throws IOException;
  30. /**
  31. * Retrieve the {@link org.eclipse.jgit.attributes.AttributesNode} that
  32. * holds the information located in the global gitattributes file.
  33. *
  34. * @return the {@link org.eclipse.jgit.attributes.AttributesNode} that holds
  35. * the information located in the global gitattributes file.
  36. * @throws java.io.IOException
  37. * java.io.IOException if an error is raised while parsing the
  38. * attributes file
  39. * @see CoreConfig#getAttributesFile()
  40. */
  41. AttributesNode getGlobalAttributesNode() throws IOException;
  42. }