Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
govardhan c64d6b110b
added github support via .gitattributes to treat generated files in PRs as do-not-display-by-default (#17139) 2021-08-26 11:39:24 +00:00
Nick Guerrera 1c108b5fb3
Use UNIX LF line endings everywhere, even on Windows (#10360)
The new Prettier-based formatting commit hook is incompatible
with Windows CRLF line endings so enforce Unix LF everywhere.

The .gitattributes prior to this change causes these conversions even
if core.autocrlf is false. This configuration, in contrast, works
irrespective of the global git configuration. It also prevents files
from being committed with Windows line endings accidentally.

* Git 2.10 (release 2016-09-03) or later required

* Earlier versions of git will incorrectly apply eol=lf to binary
  files unless explicitly called out as binary in .gitattributes

* Existing working copies on Windows will not have their existing line
  endings corrected, and you will get `warning: CRLF will be replaced
  by LF in <file>` when you edit them.

* To convert all of the files in an existing working copy to avoid
  these warnings:

1. MAKE SURE all your work is committed and pushed somewhere as a
   backup

2. MAKE SURE `git status` reports "nothing to commit, working tree
   clean"

3. Run the following from working copy root:
```
git rm --cached -r .
git reset --hard
```
2020-07-30 14:18:17 -07:00
Brian Terlson e38b643764
Update gitattributes to mark generated files (#6701)
Generated files are collapsed by default in the diff view. This will make reviewing PRs a bit easier.
2019-12-27 12:31:39 -08:00
Brandon Siegel a2ad3a86d8 Initialize Rush repo 2019-04-29 11:14:28 -07:00
Nick Schonning 0a6584b249 chore: Add gitattributes for line endings (#2141)
Ran `git add --renormalize .`
2019-04-10 09:01:57 -07:00