forked from qt-creator/qt-creator
Git: Better status resolving
Do not consider new files as Changed Change-Id: Id1ddb870e51a974a2d20fc2ecc9fb499d1db6f8c Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
17eedb2af9
commit
616cb86ea7
@@ -1552,9 +1552,11 @@ GitClient::StatusResult GitClient::gitStatus(const QString &workingDirectory, bo
|
|||||||
return StatusFailed;
|
return StatusFailed;
|
||||||
}
|
}
|
||||||
// Unchanged (output text depending on whether -u was passed)
|
// Unchanged (output text depending on whether -u was passed)
|
||||||
if (outputText.count('\n') == 1)
|
QList<QByteArray> lines = outputText.split('\n');
|
||||||
return StatusUnchanged;
|
foreach (const QByteArray &line, lines)
|
||||||
return StatusChanged;
|
if (!line.isEmpty() && !line.startsWith('#') && !line.startsWith('?'))
|
||||||
|
return StatusChanged;
|
||||||
|
return StatusUnchanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Quietly retrieve branch list of remote repository URL
|
// Quietly retrieve branch list of remote repository URL
|
||||||
|
Reference in New Issue
Block a user