Add a constant for info/exclude

Change-Id: Ifd537ce4e726cb9460ea332f683428689bd3d7f4
This commit is contained in:
Robin Rosenberg 2013-03-30 00:03:08 +01:00 committed by Gerrit Code Review @ Eclipse.org
parent 0182e8152e
commit 0a824f5996
2 changed files with 5 additions and 2 deletions

View 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";

View File

@ -1074,8 +1074,8 @@ IgnoreNode load() throws IOException {
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;