There are two files A and B. One is edited in branch b1
. Both were edited in branch b2
.
When merging b1
to b2
, I am resolving the conflict by deciding that version of file A from branch b1
is correct. However, after the merge, file B doesn't match file A, since B was never edited on branch b1
(file B keeps commits from b2
without any conflicts).
I want to somehow mark file B as edited on b1
in this case, because I know that when file A is changed, then the file B must also follow, even if its content didn't change. (One could say B was edited on b1
, but the result of the edit is "no changes").
How to do that? I know about custom merge drivers or setting merge attribute for the file, but those work only if the file has conflict. There is no conflict on file B, there is only an "inconsistency" between A and B. I also found "assume-unchanged" setting, but it seems there is no "assume-changed" option.