From 9c544b0caaece036360d716d379343233d125a28 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Thu, 9 May 2024 00:34:58 +0000 Subject: [PATCH] Mark some flutter files as generated Add a `.gitattributes` file with some patterns for files created by the flutter templates. This list is the patterns that look the least likely to be manually edited, although there are many other files with generated (and unedited) boilerplate that look like it _might_ change in a manual commit at some point which will still add noise in new app PRs. - `.metada`, `flutter/CMakeLists.txtx`, `GenerateDPluginRegistrant.swift`, and the `generated_*` pattern files have comments indicating they are generated and should not be edited. - The `Runner.xcodeproj` and `Runner.xcworkspace` directories contain xml files and look very unlikely to be hand-edited. --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..50f294d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +samples/*/.metadata linguist-generated=true +samples/**/Flutter/GeneratedPluginRegistrant.swift linguist-generated=true +samples/**/Runner.xcodeproj/ linguist-generated=true +samples/**/Runner.xcworkspace/ linguist-generated=true +samples/**/flutter/CMakeLists.txt linguist-generated=true +samples/**/flutter/generated_* linguist-generated=true