enhance: commit search (#268)

* add `-i` parameter to ignore case while searching commit message
* add `--branches --remotes` to search commits from all branches
This commit is contained in:
leo 2024-07-17 20:54:09 +08:00
parent a68b61da94
commit d09866e2c3
No known key found for this signature in database
2 changed files with 20 additions and 10 deletions

View file

@ -566,10 +566,10 @@ namespace SourceGit.ViewModels
break;
case 2:
visible = new Commands.QueryCommits(FullPath, 1000, _searchCommitFilter).Result();
visible = new Commands.QueryCommits(FullPath, 1000, _searchCommitFilter, false).Result();
break;
case 3:
visible = new Commands.QueryCommits(FullPath, $"-1000 -- \"{_searchCommitFilter}\"", false).Result();
visible = new Commands.QueryCommits(FullPath, 1000, _searchCommitFilter, true).Result();
break;
}