Commit 44acdb67 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Decorate commits on reset dialog

Change-Id: I42bf5eb87e8d3038746df033cc759492201dc130
Reviewed-by: default avatarPetar Perisin <>
Reviewed-by: default avatarTobias Hunger <>
parent bb3d0db2
......@@ -122,10 +122,10 @@ bool ResetDialog::populateLog(const QString &repository)
if (const int rowCount = m_model->rowCount())
m_model->removeRows(0, rowCount);
// Retrieve log using a custom format "Sha1:Subject"
// Retrieve log using a custom format "Sha1:Subject [(refs)]"
GitClient *client = GitPlugin::instance()->gitClient();
QStringList arguments;
arguments << QLatin1String("--max-count=30") << QLatin1String("--format=%h:%s");
arguments << QLatin1String("--max-count=30") << QLatin1String("--format=%h:%s %d");
QString output;
if (!client->synchronousLog(repository, arguments, &output))
return false;
......@@ -136,6 +136,11 @@ bool ResetDialog::populateLog(const QString &repository)
for (int c = 0; c < ColumnCount; ++c) {
QStandardItem *item = new QStandardItem;
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
if (line.endsWith(QLatin1Char(')'))) {
QFont font = item->font();
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