This repository was archived by the owner on Jul 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 239
This repository was archived by the owner on Jul 28, 2024. It is now read-only.
Adjacent lines conflicts #719
Copy link
Copy link
Closed
Labels
improvementImprovement of an existing functionality. See "feature" for new features.Improvement of an existing functionality. See "feature" for new features.noteworthySignificant issue or PR, to be highlighted in release notesSignificant issue or PR, to be highlighted in release notesscope: coreCore VersionPress functionality like tracking actions, creating Git commits, etc.Core VersionPress functionality like tracking actions, creating Git commits, etc.
Milestone
Description
During the work on #588 we noticed that Git ends up with merge conflict when it tries to merge files with adjacent lines changed.
Example:
Original file (master, feature-branch):
line 1
line 2
Changed file (master):
line 1 changed on master
line 2
Changed file (feature-branch):
line 1
line 2 changed on feature-branch
Now git merge feature-branch fails on merge conflict. It's a correct Git behavior (see e.g. here), however it's not so useful for INI where different line = different field (except multi-line string).
A solution is (probably) to write our merge driver for INI files. However, some research is needed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
improvementImprovement of an existing functionality. See "feature" for new features.Improvement of an existing functionality. See "feature" for new features.noteworthySignificant issue or PR, to be highlighted in release notesSignificant issue or PR, to be highlighted in release notesscope: coreCore VersionPress functionality like tracking actions, creating Git commits, etc.Core VersionPress functionality like tracking actions, creating Git commits, etc.