未验证 提交 179154d3 编写于 作者: J Joao Moreno

💄

上级 a8b09d47
......@@ -1521,29 +1521,11 @@ export class Repository implements Disposable {
: undefined;
switch (raw.x + raw.y) {
case '??':
switch (handleUntracked) {
case 'withchanges':
return workingTree.push(
new Resource(
ResourceGroupType.WorkingTree,
uri,
Status.UNTRACKED,
useIcons
)
);
case 'separate':
return untracked.push(
new Resource(
ResourceGroupType.Untracked,
uri,
Status.UNTRACKED,
useIcons
)
);
case 'hide':
return undefined;
}
case '??': switch (handleUntracked) {
case 'withchanges': return workingTree.push(new Resource(ResourceGroupType.WorkingTree, uri, Status.UNTRACKED, useIcons));
case 'separate': return untracked.push(new Resource(ResourceGroupType.Untracked, uri, Status.UNTRACKED, useIcons));
default: return undefined;
}
case '!!': return workingTree.push(new Resource(ResourceGroupType.WorkingTree, uri, Status.IGNORED, useIcons));
case 'DD': return merge.push(new Resource(ResourceGroupType.Merge, uri, Status.BOTH_DELETED, useIcons));
case 'AU': return merge.push(new Resource(ResourceGroupType.Merge, uri, Status.ADDED_BY_US, useIcons));
......@@ -1567,6 +1549,7 @@ export class Repository implements Disposable {
case 'D': workingTree.push(new Resource(ResourceGroupType.WorkingTree, uri, Status.DELETED, useIcons, renameUri)); break;
case 'A': workingTree.push(new Resource(ResourceGroupType.WorkingTree, uri, Status.INTENT_TO_ADD, useIcons, renameUri)); break;
}
return undefined;
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册