]> source.dussan.org Git - jgit.git/commit
FastIgnoreRule: include bad pattern in log message 31/176731/2
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 23 Feb 2021 12:11:56 +0000 (13:11 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 23 Feb 2021 21:11:01 +0000 (22:11 +0100)
commit4e745c57f7612123bc58d3ff96f95c472f9edc94
tree293d74e935e47e97f7a83273e942f760cc1e591a
parent927deed5a569bd09ad5d23e815bcc3d68d14de91
FastIgnoreRule: include bad pattern in log message

When a .gitignore pattern cannot be parsed include the pattern in the
log message. Just reporting "not closed bracket" isn't helpful if the
user doesn't know in which pattern the problem occurred.

Even better would be to include the full path of the .gitignore file
that contained the offending pattern. This is not implemented in this
change; it may need new API and needs more thought.

Bug: 571143
Change-Id: Id5b16d9cf550544ba3ad409a02041946fa8516ab
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/ignore/FastIgnoreRule.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java