[PATCH] dim: force merge commit for backmerges

Daniel Vetter daniel.vetter at ffwll.ch
Mon Aug 2 17:46:14 UTC 2021


We have all these remainders to actually type a commit message, but
--no-commit doesn't imply --no-ff, so let's fix that.

Noticed because Maarten managed to do a fast-forward backmerge into
drm-misc-next somehow.

Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
---
 dim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dim b/dim
index 56463eb0c0a6..b3016d921a1a 100755
--- a/dim
+++ b/dim
@@ -1240,7 +1240,7 @@ function dim_backmerge
 
 	validate_upstream_baseline $branch $upstream
 
-	git merge --rerere-autoupdate --no-commit $upstream >& /dev/null || true
+	git merge --rerere-autoupdate --no-commit --no-ff $upstream >& /dev/null || true
 
 	patch_file=$(git_dir)/MERGE_MSG
 
-- 
2.32.0



More information about the dim-tools mailing list