aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Kotsenas <Matt.Kotsenas@gmail.com>2024-08-14 17:27:36 -0700
committerGitHub <noreply@github.com>2024-08-14 17:27:36 -0700
commit71eddf97b6d7ccae140c075aab37aa4cc5a13b7f (patch)
tree88082a9c0bd425b04eaa17736f3e84812bea5a18
parent8779ee73af62c669e7ca371aaab8399d87127693 (diff)
downloadgitignore-71eddf97b6d7ccae140c075aab37aa4cc5a13b7f.tar.gz
gitignore-71eddf97b6d7ccae140c075aab37aa4cc5a13b7f.zip
Update VisualStudio.gitignore
`Directory.Build.rsp` is a [documented file][1] that allows setting default arguments to command line builds. However, our .gitignore template ignores _all_ `*.rsp` files. which causes confusion: 1. Devs write an .rsp file and if they aren't being attentive forget to commit it 2. Adding it to git requires `git add --force`, which some devs mistake for a destructive or not-recommended action Thus, explicitly allow the `Directory.Build.rsp` file. [1]: https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-response-files?view=vs-2022#directorybuildrsp
-rw-r--r--VisualStudio.gitignore2
1 files changed, 2 insertions, 0 deletions
diff --git a/VisualStudio.gitignore b/VisualStudio.gitignore
index 8a30d258..a4fe18bd 100644
--- a/VisualStudio.gitignore
+++ b/VisualStudio.gitignore
@@ -82,6 +82,8 @@ StyleCopReport.xml
*.pgc
*.pgd
*.rsp
+# but not Directory.Build.rsp, as it configures directory-level build defaults
+!Directory.Build.rsp
*.sbr
*.tlb
*.tli