We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 57df31e + d4b532e commit 95ffb09Copy full SHA for 95ffb09
2 files changed
src/mainimpl.cpp
@@ -291,10 +291,8 @@ void MainImpl::ActExternalDiff_activated() {
291
}
292
293
294
-const QRegularExpression MainImpl::emptySha("0*");
295
-
296
QString MainImpl::copyFileToDiffIfNeeded(QStringList* filenames, QString sha) {
297
- if (emptySha.match(sha).hasMatch())
+ if (sha == QGit::ZERO_SHA)
298
{
299
return QString(curDir + "/" + rv->st.fileName());
300
src/mainimpl.h
@@ -187,7 +187,6 @@ protected slots:
187
QString textToFind;
188
QRegularExpression shortLogRE;
189
QRegularExpression longLogRE;
190
- static const QRegularExpression emptySha;
191
QMap<QString, QVariant> revision_variables; // variables used in generic input dialogs
192
bool setRepositoryBusy;
193
0 commit comments