]> source.dussan.org Git - jgit.git/commitdiff
Add a constant for info/exclude 64/11564/3
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Fri, 29 Mar 2013 23:03:08 +0000 (00:03 +0100)
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>
Mon, 8 Apr 2013 22:08:23 +0000 (18:08 -0400)
Change-Id: Ifd537ce4e726cb9460ea332f683428689bd3d7f4

org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java

index 907742ee8ed909637a268261c2ff151f359458ce..1e8d0d808c0453634d7e50119cbc94dc888cc521 100644 (file)
@@ -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";
 
index 9a7db888c6e7c2ce5c99cf5d2b501c8af6f43280..07ba9d73a47e12ef16ccca6cc16bd1689ed93d4c 100644 (file)
@@ -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;