diff --git a/.gitattributes b/.gitattributes index b508c0d946..1f6c60ff78 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,6 @@ # When running OpenAPI tests, these committed files are downloaded and written to disk (so we'll know when something changes). -# On Windows, these text files are auto-converted to crlf on fetch, while the written downloaded files use lf line endings. +# On Windows, these text files are auto-converted to crlf on git fetch, while the written downloaded files use lf line endings. # Therefore, running the tests on Windows creates local changes. Staging them auto-converts back to crlf, which undoes the changes. -# To avoid this annoyance, the next line opts out of the auto-conversion and forces to lf. +# To avoid this annoyance, the next lines opt out of the auto-conversion and force to lf. swagger.g.json text eol=lf +**/GeneratedSwagger/*.json text eol=lf