Use the fossil settings to determine whether gdiff or diff should be used for diffing files
FossilOrigin-Name: b3dc68271fb2d6fbbe80060d3ec3d206f5f0097f
This commit is contained in:
@@ -1400,8 +1400,9 @@ void MainWindow::getSelectionRemotes(QStringList &remoteUrls)
|
||||
//------------------------------------------------------------------------------
|
||||
bool MainWindow::diffFile(const QString &repoFile)
|
||||
{
|
||||
if(fossil().diffFile(repoFile, true))
|
||||
return true;
|
||||
const QString &gdiff = settings.GetFossilValue(FOSSIL_SETTING_GDIFF_CMD).toString();
|
||||
if(!gdiff.isEmpty())
|
||||
return fossil().diffFile(repoFile, true);
|
||||
else
|
||||
return fossil().diffFile(repoFile, false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user