From c62d7e164862503a3662a095da1c6c9014248cb2 Mon Sep 17 00:00:00 2001
From: Daniel Vetter <daniel.vetter@ffwll.ch>
Date: Thu, 29 Feb 2024 12:04:44 +0100
Subject: [PATCH] dim: change diff algo to Linus' preference

Just for generating pulls, that avoids tampering with the user's
config.

References: https://lwn.net/Articles/931180/
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
---
 dim | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dim b/dim
index 3dac36c..4ef7061 100755
--- a/dim
+++ b/dim
@@ -2356,9 +2356,10 @@ function dim_pull_request # branch upstream [tag]
 	url_list=${drm_tip_repos[$repo]}
 	git_url=$(pick_protocol_url https $url_list)
 
-	$DRY git request-pull $upstream $git_url $tag >> $req_file
+	$DRY git -c diff.algorithm=histogram request-pull \
+		$upstream $git_url $tag >> $req_file
 	$DRY $DIM_MUA -s "[PULL] $branch" \
-	     -i $req_file "${dim_pull_request_recipients[@]}"
+		-i $req_file "${dim_pull_request_recipients[@]}"
 }
 
 function dim_pull_request_next
-- 
GitLab