Browse Source

Added toString() methods for better debugging of ignore rules

Change-Id: Ie31687faa2df47ecaacace2504c3b4e93f1ea809
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v3.5.0.201409071800-rc1
Andrey Loskutov 9 years ago
parent
commit
0307123e5a

+ 5
- 0
org.eclipse.jgit/src/org/eclipse/jgit/fnmatch/CharacterHead.java View File

return c == expectedCharacter; return c == expectedCharacter;
} }


@Override
public String toString() {
return String.valueOf(expectedCharacter);
}

} }

+ 5
- 0
org.eclipse.jgit/src/org/eclipse/jgit/fnmatch/RestrictedWildCardHead.java View File

protected final boolean matches(final char c) { protected final boolean matches(final char c) {
return c != excludedCharacter; return c != excludedCharacter;
} }

@Override
public String toString() {
return isStar() ? "*" : "?"; //$NON-NLS-1$ //$NON-NLS-2$
}
} }

+ 5
- 0
org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java View File

// We are checking the last part of the segment for which isDirectory has to be considered. // We are checking the last part of the segment for which isDirectory has to be considered.
return !dirOnly || isDirectory; return !dirOnly || isDirectory;
} }

@Override
public String toString() {
return pattern;
}
} }

Loading…
Cancel
Save