[PATCH] dim: enforce consistent conflictstyle in drm-tip

Daniel Vetter daniel.vetter at ffwll.ch
Wed Oct 11 08:54:00 UTC 2017


Otherwise the tree rebuilding fails. This might be the reason why some
git versions create different conflicts, since checking
git-sources/rerere.c didn't provide any hint at all about what has
changed.

Cc: Maxime Ripard <maxime.ripard at free-electrons.com>
Cc: Noralf Trønnes <noralf at tronnes.org>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
---
 dim | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dim b/dim
index af22f94ccdd5..006c3ca97075 100755
--- a/dim
+++ b/dim
@@ -652,6 +652,10 @@ function dim_rebuild_tip
 		exit 1
 	fi
 
+	# rerere uses sha1 of the diff to identify conflicts, we must ensure
+	# that they look the same for everyone
+	git config merge.conflictstyle merge
+
 	for repo in "${!drm_tip_repos[@]}"; do
 		remote=$(repo_to_remote $repo)
 		echo -n "Fetching $repo (local remote $remote)... "
-- 
2.14.1



More information about the dim-tools mailing list