From 7df8e05ad946b01a12bbcf0f71ac573c89f119b5 Mon Sep 17 00:00:00 2001 From: Filip Binkiewicz Date: Tue, 12 Aug 2025 19:47:15 +0100 Subject: [PATCH] Ignore whitespace in git blame invocation (#35960) This works around a bug wherein inline git blame is unavailable for files with CRLF line endings. At the same time, this prevents users from seeing whitespace-only changes in the editor's git blame Closes #35836 Release Notes: - N/A *or* Added/Fixed/Improved ... --- crates/git/src/blame.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/git/src/blame.rs b/crates/git/src/blame.rs index 2128fa55c370c600105cd05811b0c73f1ea26144..6f12681ea08956b53d9ce298593ce08f0e2a74a9 100644 --- a/crates/git/src/blame.rs +++ b/crates/git/src/blame.rs @@ -73,6 +73,7 @@ async fn run_git_blame( .current_dir(working_directory) .arg("blame") .arg("--incremental") + .arg("-w") .arg("--contents") .arg("-") .arg(path.as_os_str())