From a926b560119dbb275362a5e19c88efe7e6362a47 Mon Sep 17 00:00:00 2001 From: Benjamin Woodruff Date: Tue, 24 Sep 2024 16:42:33 -0700 Subject: [PATCH] chore(gitattributes): Mark more __snapshots__ directories as generated (#70421) Noticed these files while reviewing https://github.com/vercel/next.js/pull/70242 Mark them as generated so that github & graphite collapse them when reviewing code. ``` $ git ls-files | git check-attr -a --stdin | grep __snapshots__ ``` ``` .config/ast-grep/rule-tests/__snapshots__/no-context-snapshot.yml: linguist-generated: true examples/with-jest-babel/__tests__/__snapshots__/snapshot.tsx.snap: linguist-generated: true examples/with-jest/__tests__/__snapshots__/snapshot.tsx.snap: linguist-generated: true examples/with-typescript-graphql/test/__snapshots__/index.test.tsx.snap: linguist-generated: true test/development/acceptance-app/__snapshots__/ReactRefreshLogBox.test.ts.snap: linguist-generated: true test/development/acceptance/__snapshots__/ReactRefreshLogBox.test.ts.snap: linguist-generated: true test/development/acceptance/__snapshots__/ReactRefreshLogBoxMisc.test.ts.snap: linguist-generated: true test/development/acceptance/__snapshots__/error-recovery.test.ts.snap: linguist-generated: true test/development/basic/__snapshots__/next-rs-api.test.ts.snap: linguist-generated: true test/production/eslint/test/__snapshots__/next-build-and-lint.test.ts.snap: linguist-generated: true ``` --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index a860ea7362699..e7c8226acf907 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,4 +8,4 @@ turbopack/crates/turbo-tasks-macros-tests/tests/**/*.stderr linguist-generated=t turbopack/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/**/output.md linguist-generated=true turbopack/crates/turbopack-tests/tests/snapshot/**/output/** linguist-generated=true -.config/ast-grep/rule-tests/__snapshots__/** linguist-generated=true +**/__snapshots__/** linguist-generated=true