aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2013-03-30 00:03:08 +0100
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2013-04-08 18:08:23 -0400
commit0a824f59969721eafd45494cf7dade1ed4d0c4e8 (patch)
tree80a7d6e80fae9d410e57eebdd4db41f56cfbb112 /org.eclipse.jgit
parent0182e8152ee8d7cdf8df3b405fb223b37905b862 (diff)
downloadjgit-0a824f59969721eafd45494cf7dade1ed4d0c4e8.tar.gz
jgit-0a824f59969721eafd45494cf7dade1ed4d0c4e8.zip
Add a constant for info/exclude
Change-Id: Ifd537ce4e726cb9460ea332f683428689bd3d7f4
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java3
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java4
2 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java
index 907742ee8e..1e8d0d808c 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java
@@ -265,6 +265,9 @@ public final class Constants {
/** Packed refs file */
public static final String PACKED_REFS = "packed-refs";
+ /** Excludes-file */
+ public static final String INFO_EXCLUDE = "info/exclude";
+
/** The environment variable that contains the system user name */
public static final String OS_USER_NAME_KEY = "user.name";
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java
index 9a7db888c6..07ba9d73a4 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java
@@ -1074,8 +1074,8 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator {
loadRulesFromFile(r, excludesfile);
}
- File exclude = fs
- .resolve(repository.getDirectory(), "info/exclude"); //$NON-NLS-1$
+ File exclude = fs.resolve(repository.getDirectory(),
+ Constants.INFO_EXCLUDE);
loadRulesFromFile(r, exclude);
return r.getRules().isEmpty() ? null : r;