Skip to content

Commit b7a6c51

Browse files
authored
Exclude untracked dvc.yaml and dvc.lock files from the DVC SCM tree (#4446)
1 parent 82628c9 commit b7a6c51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extension/src/repository/model/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ export class RepositoryModel extends Disposable {
161161
),
162162
untracked: [...untracked]
163163
.filter(
164-
path => extname(path) !== DOT_DVC && basename(path) !== '.gitignore'
164+
path =>
165+
extname(path) !== DOT_DVC &&
166+
!['.gitignore', 'dvc.yaml', 'dvc.lock'].includes(basename(path))
165167
)
166168
.map(path => ({
167169
contextValue: SourceControlDataStatus.UNTRACKED,

0 commit comments

Comments
 (0)