Fixed issue #4126: Capitalize the first letter in the Push dialog
[TortoiseGit.git] / src / TortoiseProc / LogDlgFileFilter.cpp
bloba248858376c232335e29f9683fd26e4390994260
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2019 - TortoiseGit
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #include "stdafx.h"
20 #include "LogDlgFileFilter.h"
21 #include "LogDlg.h"
23 bool CLogDlgFileFilter::operator()(const CTGitPath& path) const
25 if (!IsFilterActive())
26 return CalculateFinalResult(true);
28 // we need to perform expensive string / pattern matching
29 scratch.clear();
31 scratch += path.GetGitPathString();
32 if (!path.GetGitOldPathString().IsEmpty())
34 scratch += L'\n';
35 scratch += path.GetGitOldPathString();
38 return CalculateFinalResult(Match(scratch));