Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/mainimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,8 @@ void MainImpl::ActExternalDiff_activated() {
}
}

const QRegularExpression MainImpl::emptySha("0*");

QString MainImpl::copyFileToDiffIfNeeded(QStringList* filenames, QString sha) {
if (emptySha.match(sha).hasMatch())
if (sha == QGit::ZERO_SHA)
{
return QString(curDir + "/" + rv->st.fileName());
}
Expand Down
1 change: 0 additions & 1 deletion src/mainimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ protected slots:
QString textToFind;
QRegularExpression shortLogRE;
QRegularExpression longLogRE;
static const QRegularExpression emptySha;
QMap<QString, QVariant> revision_variables; // variables used in generic input dialogs
bool setRepositoryBusy;

Expand Down
Loading