File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -473,10 +473,15 @@ def config_ifcmerge(cls) -> None:
473473 config_writer .set_value (section , "cmd" , "ifcmerge $BASE $LOCAL $REMOTE $MERGED" )
474474 config_writer .set_value (section , "trustExitCode" , True )
475475 section = 'mergetool "ifcmerge-forward"'
476+ new_cmd = "ifcmerge --prioritise-local $BASE $LOCAL $REMOTE $MERGED"
477+ old_cmd = "ifcmerge $BASE $REMOTE $LOCAL $MERGED"
476478 if not config_reader .has_section (section ):
477479 with IfcGitRepo .repo .config_writer () as config_writer :
478- config_writer .set_value (section , "cmd" , "ifcmerge $BASE $REMOTE $LOCAL $MERGED" )
480+ config_writer .set_value (section , "cmd" , new_cmd )
479481 config_writer .set_value (section , "trustExitCode" , True )
482+ elif config_reader .get_value (section , "cmd" ) == old_cmd :
483+ with IfcGitRepo .repo .config_writer () as config_writer :
484+ config_writer .set_value (section , "cmd" , new_cmd )
480485
481486 @classmethod
482487 def config_push (cls , repo : git .Repo ) -> None :
You can’t perform that action at this time.
0 commit comments