Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Don't ignore valid SCM files #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions 18 src/main/java/org/codehaus/plexus/util/AbstractScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public abstract class AbstractScanner
* <li>SurroundSCM: &#42;&#42;/.MySCMServerInfo</li>
* <li>Mac: &#42;&#42;/.DS_Store</li>
* <li>Serena Dimension: &#42;&#42;/.metadata, &#42;&#42;/.metadata/&#42;&#42;</li>
* <li>Mercurial: &#42;&#42;/.hg, &#42;&#42;/.hg/&#42;&#42;, &#42;&#42;/.hgignore</li>
* <li>GIT: &#42;&#42;/.git, &#42;&#42;/.gitignore, &#42;&#42;/.gitattributes, &#42;&#42;/.git/&#42;&#42;</li>
* <li>Mercurial: &#42;&#42;/.hg, &#42;&#42;/.hg/&#42;&#42;</li>
* <li>Git: &#42;&#42;/.git, &#42;&#42;/.git/&#42;&#42;</li>
* <li>Bitkeeper: &#42;&#42;/BitKeeper, &#42;&#42;/BitKeeper/&#42;&#42;, &#42;&#42;/ChangeSet,
* &#42;&#42;/ChangeSet/&#42;&#42;</li>
* <li>Darcs: &#42;&#42;/_darcs, &#42;&#42;/_darcs/&#42;&#42;, &#42;&#42;/.darcsrepo,
Expand Down Expand Up @@ -90,10 +90,10 @@ public abstract class AbstractScanner
"**/.metadata", "**/.metadata/**",

// Mercurial
"**/.hg", "**/.hgignore", "**/.hg/**",
"**/.hg", "**/.hg/**",

// git
"**/.git", "**/.gitignore", "**/.gitattributes", "**/.git/**",
"**/.git", "**/.git/**",

// BitKeeper
"**/BitKeeper", "**/BitKeeper/**", "**/ChangeSet", "**/ChangeSet/**",
Expand Down Expand Up @@ -124,7 +124,7 @@ public abstract class AbstractScanner
* @since 3.3.0
*/
protected Comparator<String> filenameComparator;

/**
* Sets whether or not the file system should be regarded as case sensitive.
*
Expand All @@ -137,7 +137,7 @@ public void setCaseSensitive( boolean isCaseSensitive )

/**
* <p>Tests whether or not a given path matches the start of a given pattern up to the first "**".</p>
*
*
* <p>This is not a general purpose test and should only be used if you can live with false positives. For example,
* <code>pattern=**\a</code> and <code>str=b</code> will yield <code>true</code>.</p>
*
Expand All @@ -152,7 +152,7 @@ protected static boolean matchPatternStart( String pattern, String str )

/**
* <p>Tests whether or not a given path matches the start of a given pattern up to the first "**".</p>
*
*
* <p>This is not a general purpose test and should only be used if you can live with false positives. For example,
* <code>pattern=**\a</code> and <code>str=b</code> will yield <code>true</code>.</p>
*
Expand Down Expand Up @@ -223,7 +223,7 @@ protected static boolean match( String pattern, String str, boolean isCaseSensit
/**
* <p>Sets the list of include patterns to use. All '/' and '\' characters are replaced by
* <code>File.separatorChar</code>, so the separator used need not match <code>File.separatorChar</code>.</p>
*
*
* <p>When a pattern ends with a '/' or '\', "**" is appended.</p>
*
* @param includes A list of include patterns. May be <code>null</code>, indicating that all files should be
Expand Down Expand Up @@ -253,7 +253,7 @@ public void setIncludes( String[] includes )
/**
* <p>Sets the list of exclude patterns to use. All '/' and '\' characters are replaced by
* <code>File.separatorChar</code>, so the separator used need not match <code>File.separatorChar</code>.</p>
*
*
* <p>When a pattern ends with a '/' or '\', "**" is appended.</p>
*
* @param excludes A list of exclude patterns. May be <code>null</code>, indicating that no files should be
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.