forked from qt-creator/qt-creator
Git: Support reverting unmerged files
Change-Id: I8b974cb6ec620b303f9b1918af43e6672460f030 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
cda1b6d246
commit
4f079fe17e
@@ -205,7 +205,7 @@ QStringList CommitData::filterFiles(const FileStates &state) const
|
|||||||
{
|
{
|
||||||
QStringList result;
|
QStringList result;
|
||||||
foreach (const StateFilePair &p, files) {
|
foreach (const StateFilePair &p, files) {
|
||||||
if (state == p.first)
|
if (state == (p.first & ~(UnmergedFile | UnmergedUs | UnmergedThem)))
|
||||||
result.append(p.second);
|
result.append(p.second);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user