From 99b1a1dfb6ee64973552f0169fe1e5e07096ec8c Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Wed, 24 Jul 2024 18:50:49 +0300 Subject: [PATCH] devx: nicer diff hunk headers (#8482) By default git does not find a nice hunk header with rust. New(er) versions ship with a handy xfuncname pattern, so lets enable that for all developers. Example of how this should help: https://github.com/rust-lang/rust/commit/39046172ab91805efb79a55870c2ced2d61cfc3a --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000000..6ba6b3c887e9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# allows for nicer hunk headers with git show +*.rs diff=rust