Skip to content

Commit d80d2c6

Browse files
authored
Rollup merge of #133851 - oli-obk:push-pzwykzozkomq, r=jieyouxu
Stop git from merging generated files See the relevant documentation for details: https://git-scm.com/docs/gitattributes#Documentation/gitattributes.txt-Unset-1-1-1 This will cause `.stderr`, `.stdout`, `.mir`, and `.fixed` files to stop generating conflict markers and instead just pick the version from your branch, not the one you're rebasing over. Git will still raise a conflict and thus stop a rebase at that commit, but it avoids having to deal with conflict markers in files where we just bless them away anyway.
2 parents ea4e719 + 4cbb599 commit d80d2c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: .gitattributes

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
*.cpp rust
55
*.h rust
66
*.rs rust diff=rust
7-
*.fixed linguist-language=Rust
8-
*.mir linguist-language=Rust
7+
*.fixed linguist-language=Rust -merge
8+
*.mir linguist-language=Rust -merge
9+
*.stderr -merge
10+
*.stdout -merge
911
src/etc/installer/gfx/* binary
1012
src/vendor/** -text
1113
Cargo.lock linguist-generated=false

0 commit comments

Comments
 (0)