Преглед изворни кода

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;
}

Loading…
Откажи
Сачувај