浏览代码

Moves file changes to be first

main
Eric Amodio 4 年前
父节点
当前提交
5f12ee8ba7
共有 1 个文件被更改,包括 16 次插入15 次删除
  1. +16
    -15
      src/views/nodes/branchTrackingStatusNode.ts

+ 16
- 15
src/views/nodes/branchTrackingStatusNode.ts 查看文件

@ -79,21 +79,7 @@ export class BranchTrackingStatusNode extends ViewNode implement
commits = log.commits.values();
}
const children = [
...insertDateMarkers(
Iterables.map(
commits,
c => new CommitNode(this.view, this, c, this.upstreamType === 'ahead', this.branch),
),
this,
1,
),
];
if (log.hasMore) {
children.push(new LoadMoreNode(this.view, this, children[children.length - 1]));
}
const children = [];
if (!this.isReposView && this.status.upstream && this.upstreamType === 'ahead' && this.status.state.ahead > 0) {
children.push(
new BranchTrackingStatusFilesNode(
@ -107,6 +93,21 @@ export class BranchTrackingStatusNode extends ViewNode implement
);
}
children.push(
...insertDateMarkers(
Iterables.map(
commits,
c => new CommitNode(this.view, this, c, this.upstreamType === 'ahead', this.branch),
),
this,
1,
),
);
if (log.hasMore) {
children.push(new LoadMoreNode(this.view, this, children[children.length - 1]));
}
return children;
}

正在加载...
取消
保存