From 38f5267ba8016040912def499234b526af85c00c Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Tue, 29 Mar 2011 20:50:03 +0300 Subject: [PATCH] CLI: Simplify ignore paths. Fixes #2656 (-i Give path to ignore does not ignore if start of the path is different than checked path) Simplify paths given as -i options. This makes it easier to match the paths as simplifying removes redundant parts. --- cli/cmdlineparser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 80cc742bd..cc094abdf 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -386,6 +386,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[]) if (!path.empty()) { path = Path::fromNativeSeparators(path); + path = Path::simplifyPath(path.c_str()); path = Path::removeQuotationMarks(path); // If not "known" filename extension then assume it is path