mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
Ignore case to search commit
This commit is contained in:
parent
7bb2ba34d4
commit
951e08e9e0
1 changed files with 4 additions and 4 deletions
|
@ -245,10 +245,10 @@ namespace SourceGit.UI {
|
||||||
List<Git.Commit> found = new List<Git.Commit>();
|
List<Git.Commit> found = new List<Git.Commit>();
|
||||||
|
|
||||||
foreach (var commit in cachedCommits) {
|
foreach (var commit in cachedCommits) {
|
||||||
if (commit.Subject.IndexOf(search) >= 0 ||
|
if (commit.Subject.IndexOf(search, StringComparison.OrdinalIgnoreCase) >= 0 ||
|
||||||
(commit.Author != null && commit.Author.Name == search) ||
|
(commit.Author != null && commit.Author.Name.Equals(search, StringComparison.OrdinalIgnoreCase)) ||
|
||||||
(commit.Committer != null && commit.Committer.Name == search) ||
|
(commit.Committer != null && commit.Committer.Name.Equals(search, StringComparison.OrdinalIgnoreCase)) ||
|
||||||
commit.Message.IndexOf(search) >= 0) {
|
commit.Message.IndexOf(search, StringComparison.OrdinalIgnoreCase) >= 0) {
|
||||||
found.Add(commit);
|
found.Add(commit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue