Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
No longer using Contains but String.Equals for project ignore logic
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertvanHorrik committed Dec 13, 2014
1 parent 50fe0a9 commit 6b70d71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ Sometimes a repository contains more than 1 solution file. By default, all solut

When specific projects should be ignored, use the *-ignore* option. This option accepts a comma separated list of projects to ignore:

GitLink.exe c:\source\catel -u https://github.com/catel/catel -f Catel.sln -ignore WindowsPhone,WindowsRuntime

**Note that the ignore list uses Contains([ignoredProject]) to ignore items, so when use *Windows*, *WindowsPhone* will be ignored as well**
GitLink.exe c:\source\catel -u https://github.com/catel/catel -f Catel.sln -ignore Catel.Core.WP80,Catel.MVVM.WP80

## Getting help

Expand Down
2 changes: 1 addition & 1 deletion src/GitLink/Extensions/ProjectExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static bool ShouldBeIgnored(this Project project, IEnumerable<string> pro
{
var lowerCaseProjectToIgnore = projectToIgnore.ToLower();

if (projectName.Contains(lowerCaseProjectToIgnore))
if (string.Equals(projectName, lowerCaseProjectToIgnore))
{
return true;
}
Expand Down

0 comments on commit 6b70d71

Please sign in to comment.