Git: Also use the latest settings setup approach

Change-Id: I34a210575d02d18927c1e0f6d8ea6cb9924c563d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2023-05-15 14:23:01 +02:00
parent c82d7ccdcd
commit 545a105634
10 changed files with 63 additions and 63 deletions

View File

@@ -428,7 +428,7 @@ void BranchModel::refresh(const FilePath &workingDirectory, ShowError showError)
"%(*objectname)\t%(committerdate:raw)\t%(*committerdate:raw)",
"refs/heads/**",
"refs/remotes/**"};
if (d->client->settings().showTags.value())
if (settings().showTags())
args << "refs/tags/**";
d->client->setupCommand(process, workingDirectory, args);
};
@@ -805,7 +805,7 @@ void BranchModel::Private::parseOutputLine(const QString &line, bool force)
const qint64 age = dateTime.daysTo(QDateTime::currentDateTime());
isOld = age > Constants::OBSOLETE_COMMIT_AGE_IN_DAYS;
}
const bool showTags = client->settings().showTags.value();
const bool showTags = settings().showTags();
// insert node into tree:
QStringList nameParts = fullName.split('/');