From b7a6c51b02587c36e692c74efde62b4275148d4f Mon Sep 17 00:00:00 2001 From: Matt Seddon <37993418+mattseddon@users.noreply.github.com> Date: Wed, 9 Aug 2023 06:21:25 +1000 Subject: [PATCH] Exclude untracked dvc.yaml and dvc.lock files from the DVC SCM tree (#4446) --- extension/src/repository/model/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extension/src/repository/model/index.ts b/extension/src/repository/model/index.ts index 206b8d68d1..1ca27c961f 100644 --- a/extension/src/repository/model/index.ts +++ b/extension/src/repository/model/index.ts @@ -161,7 +161,9 @@ export class RepositoryModel extends Disposable { ), untracked: [...untracked] .filter( - path => extname(path) !== DOT_DVC && basename(path) !== '.gitignore' + path => + extname(path) !== DOT_DVC && + !['.gitignore', 'dvc.yaml', 'dvc.lock'].includes(basename(path)) ) .map(path => ({ contextValue: SourceControlDataStatus.UNTRACKED,