forked from qt-creator/qt-creator
Git: Support typechange
Replacing a normal file with a symbolic link. Change-Id: Id07ab339e8fcdf039b61d6e459b8d751d499f4f6 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
b98f2a3059
commit
877a10c8ef
@@ -94,6 +94,8 @@ static FileStates stateFor(const QChar &c)
|
||||
return CopiedFile;
|
||||
case 'U':
|
||||
return UnmergedFile;
|
||||
case 'T':
|
||||
return TypeChangedFile;
|
||||
case '?':
|
||||
return UntrackedFile;
|
||||
default:
|
||||
@@ -209,6 +211,8 @@ QString CommitData::stateDisplayName(const FileStates &state)
|
||||
resultState.append(tr("renamed"));
|
||||
else if (state & CopiedFile)
|
||||
resultState.append(tr("copied"));
|
||||
else if (state & TypeChangedFile)
|
||||
resultState.append(tr("typechange"));
|
||||
if (state & UnmergedUs) {
|
||||
if (state & UnmergedThem)
|
||||
resultState.append(tr(" by both"));
|
||||
|
||||
Reference in New Issue
Block a user