Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2024 15:51:32 +0100
From:      Christian Weisgerber <naddy@mips.inka.de>
To:        freebsd-git@freebsd.org
Subject:   Force merge conflicts?
Message-ID:  <Za_SdBnXJkerj8gF@lorvorc.mips.inka.de>

next in thread | raw e-mail | index | archive | help
Say, you create a branch of the ports tree to work on something
that touches a number of ports (like arrowd@'s current autotools-mandir
project).  You accumulate changes and bump PORTREVISION in various
port Makefiles.

Meanwhile work on the "main" branch continues and PORTREVISION also
gets bumped for entirely different reasons.

Now when you rebase/merge your changes into "main", git is happy
that the PORTREVISION line is the same in both branches and silently
unifies this.  Unfortunately, your incoming changes should _increment_
PORTREVISION, but that increment is now silently lost.

Is there a way to tell git to create a conflict when two branches
have the same change?

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Za_SdBnXJkerj8gF>