Commit 77c60691 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

VCS: Be less strict when matching diff files

The provided regexps can be partial. They must match
from the beginning of the line, but matching line's
end is not required (for example, CVS pattern matches
until first tab)

Change-Id: I8fdf162aebf6d275a9ef1ed3340c0c7599eb36f8
Reviewed-by: default avatarTobias Hunger <>
parent 89d16332
......@@ -831,7 +831,7 @@ void VcsBaseEditorWidget::slotPopulateDiffBrowser()
for (QTextBlock it = document()->begin(); it != cend; it =, lineNumber++) {
const QString text = it.text();
// Check for a new diff section (not repeating the last filename)
if (d->m_diffFilePattern.exactMatch(text)) {
if (d->m_diffFilePattern.indexIn(text) == 0) {
const QString file = fileNameFromDiffSpecification(it);
if (!file.isEmpty() && lastFileName != file) {
lastFileName = file;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment