Uh oh!
There was an error while loading. Please reload this page.
gitignore: add comment explaining policy - #63373
Conversation
rust-highfive
commented
Aug 8, 2019
(rust_highfive has picked a reviewer for you, use r? to override) |
| src/etc/dl | ||
| tmp.*.rs | ||
| version.md | ||
| version.ml |
There was a problem hiding this comment.
This looks like it is from the OCaml bootstrap days. ;)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
alexcrichton
commented
Aug 8, 2019
@bors: r+ rollup |
bors
commented
Aug 8, 2019
📌 Commit 798767c has been approved by |
gitignore: add comment explaining policy Based on rust-lang#63307 (comment), I added a comment what I think should be gitignored and what not. This is just a proposal, obviously. Also see rust-lang#53768 for some more discussion. The summary is that if there are junk files that you create locally and are fine leaving around (such as `mir_dump`), git has the option for you to add them to `.git/info/exclude`. Others might prefer to keep their working dir clean of those same junk files, so we shouldn't just ignore them for everyone. I then also cleaned up a few more things, but there were many things that I had no idea where they came from so I didn't touch them.
gitignore: add comment explaining policy Based on rust-lang#63307 (comment), I added a comment what I think should be gitignored and what not. This is just a proposal, obviously. Also see rust-lang#53768 for some more discussion. The summary is that if there are junk files that you create locally and are fine leaving around (such as `mir_dump`), git has the option for you to add them to `.git/info/exclude`. Others might prefer to keep their working dir clean of those same junk files, so we shouldn't just ignore them for everyone. I then also cleaned up a few more things, but there were many things that I had no idea where they came from so I didn't touch them.
Rollup of 6 pull requests Successful merges: - #63162 (Miri tests: use xargo to build separate libstd) - #63289 (Don't recommend `extern crate` syntax) - #63373 (gitignore: add comment explaining policy) - #63374 (move of packed fields might or might not occur when they actually are sufficiently aligned) - #63381 (reduce visibility) - #63387 (Test interaction between `async { ... }` and `?`, `return`, and `break`) Failed merges: r? @ghost
| .vscode | ||
| .favorites.json | ||
| /*-*-*-*/ | ||
| /*-*-*/ |
There was a problem hiding this comment.
I was using this to have dirs git would ignore :(
However, it looks like I can maybe use the # prefix instead?
There was a problem hiding this comment.
Just edit your .git/info/exclude to ignore whatever you want.
There was a problem hiding this comment.
I keep forgetting why I don't use that more often.
…um,Centril keep the root dir clean from debugging We landed this before with rust-lang#63307 but recently in rust-lang#65630 the IMO bad ignore crept back in. If you regularly do graphviz-based debugging and you are fine leaving junk in the rustc root dir, please configure your local `.git/info/exclude`. But most people working on rustc don't work with graphciz all that often (I for once never did), and not everyone likes to have stray generated files in their source dirs. Also Cc rust-lang#63373rust-lang#53768@ecstatic-morse@Mark-Simulacrum
…um,Centril keep the root dir clean from debugging We landed this before with rust-lang#63307 but recently in rust-lang#65630 the IMO bad ignore crept back in. If you regularly do graphviz-based debugging and you are fine leaving junk in the rustc root dir, please configure your local `.git/info/exclude`. But most people working on rustc don't work with graphciz all that often (I for once never did), and not everyone likes to have stray generated files in their source dirs. Also Cc rust-lang#63373rust-lang#53768@ecstatic-morse@Mark-Simulacrum
Based on #63307 (comment), I added a comment what I think should be gitignored and what not. This is just a proposal, obviously. Also see #53768 for some more discussion.
The summary is that if there are junk files that you create locally and are fine leaving around (such as
mir_dump), git has the option for you to add them to.git/info/exclude. Others might prefer to keep their working dir clean of those same junk files, so we shouldn't just ignore them for everyone.I then also cleaned up a few more things, but there were many things that I had no idea where they came from so I didn't touch them.