diff mbox series

[PULL,v3,05/18] .gitattributes: add Rust diff and merge attributes

Message ID 20241011153227.81770-6-pbonzini@redhat.com (mailing list archive)
State New
Headers show
Series [PULL,v3,01/18] Require meson version 1.5.0 | expand

Commit Message

Paolo Bonzini Oct. 11, 2024, 3:32 p.m. UTC
From: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>

Set rust source code to diff=rust (built-in with new git versions)
and merge=binary for Cargo.lock files (they should not be merged but
auto-generated by cargo)

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Link: https://lore.kernel.org/r/278e3878b40ecc7c424dec1ed978eedf21469f52.1727961605.git.manos.pitsidianakis@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 .gitattributes | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/.gitattributes b/.gitattributes
index a217cb7bfe9..6dc6383d3d1 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2,3 +2,6 @@ 
 *.h.inc         diff=c
 *.m             diff=objc
 *.py            diff=python
+*.rs            diff=rust
+*.rs.inc        diff=rust
+Cargo.lock      diff=toml merge=binary