forked from qt-creator/qt-creator
Git: Remove description from PanelInfo
It is not used anywhere Change-Id: I9884c4c015bc14cb78e35950c7544c8d004a73ca Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
25981d918e
commit
1712b86e0e
@@ -40,14 +40,12 @@ namespace Internal {
|
||||
void GitSubmitEditorPanelInfo::clear()
|
||||
{
|
||||
repository.clear();
|
||||
description.clear();
|
||||
branch.clear();
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug d, const GitSubmitEditorPanelInfo &data)
|
||||
{
|
||||
d.nospace() << "Rep: " << data.repository << " Descr: " << data.description
|
||||
<< " branch: " << data.branch;
|
||||
d.nospace() << "Rep: " << data.repository << " branch: " << data.branch;
|
||||
return d;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,6 @@ struct GitSubmitEditorPanelInfo
|
||||
{
|
||||
void clear();
|
||||
QString repository;
|
||||
QString description;
|
||||
QString branch;
|
||||
};
|
||||
|
||||
|
||||
@@ -1779,15 +1779,6 @@ bool GitClient::getCommitData(const QString &workingDirectory,
|
||||
return false;
|
||||
}
|
||||
|
||||
// Read description
|
||||
const QString descriptionFile = QDir(gitDir).absoluteFilePath(QLatin1String("description"));
|
||||
if (QFileInfo(descriptionFile).isFile()) {
|
||||
Utils::FileReader reader;
|
||||
if (!reader.fetch(descriptionFile, QIODevice::Text, errorMessage))
|
||||
return false;
|
||||
commitData->panelInfo.description = commandOutputFromLocal8Bit(reader.data()).trimmed();
|
||||
}
|
||||
|
||||
// Run status. Note that it has exitcode 1 if there are no added files.
|
||||
QString output;
|
||||
const StatusResult status = gitStatus(repoDirectory, true, &output, errorMessage);
|
||||
|
||||
Reference in New Issue
Block a user