Skip to content

Commit 63b75e4

Browse files
committed
remove file garbage
1 parent d9bb53c commit 63b75e4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/views/nodes/resultsFilesNode.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ export class ResultsFilesNode extends ViewNode<ViewWithFiles> {
8282
}
8383

8484
private async getFilesQueryResultsCore(): Promise<FilesQueryResults> {
85-
const diff = await Container.git.getDiffStatus(this.uri.repoPath!, this._ref1, this._ref2);
85+
const diff = await Container.git.getDiffStatus(this.uri.repoPath!, this._ref1, this._ref2, {
86+
findRenames: Container.config.views.compare.findRenames
87+
});
88+
8689
return {
8790
label: `${Strings.pluralize('file', diff !== undefined ? diff.length : 0, { zero: 'No' })} changed`,
8891
diff: diff

src/views/nodes/statusFilesNode.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ export class StatusFilesNode extends ViewNode<RepositoriesView> {
119119

120120
if (this.status.upstream !== undefined && this.status.state.ahead > 0) {
121121
if (files > 0) {
122-
const aheadFiles = await Container.git.getDiffStatus(this.repoPath, `${this.status.upstream}...`);
122+
const aheadFiles = await Container.git.getDiffStatus(this.repoPath, `${this.status.upstream}...`, undefined, {
123+
findRenames: Container.config.views.compare.findRenames
124+
});
125+
123126
if (aheadFiles !== undefined) {
124127
const uniques = new Set();
125128
for (const f of this.status.files) {

0 commit comments

Comments
 (0)