Skip to content

[Request] Keep diff3 conflictstyle as clear as without imerge #197

@tuxayo

Description

@tuxayo

I don't know how feasible is that. To change the comments of the conflict markers. But diff3 conflictstyle is another must use next to imerge to handle as much conflicts as possible and reliably.

Take the following example, without imerge we would have in the end >>>>>>> 90ca41fd3 My new feature commit message so I would know that by diffing it with the middle section I will see what changes are introduced by my feature and then diffing the middle and 1st section I'll see the changes upstream since my feature branched out. Which is essential to decide what to keep and drop.

With imerge I have to guess from the changes which is my feature and as a consequence which is upstream. Which is harder and error prone, and much harder if rebasing someone else's work without knowing well the diffs of the feature.

A step forward (but that would still be less clear as without imerge) would be when outputting the original commits that conflict to output also (if conflictstyle is diff3) the start of the commit message of HEAD and the bottom section. To know which is upstream and the feature.
But ideally there would be a way to change the conflict markers.

<<<<<<< HEAD
            [% IF whyicantreserve %]
                <button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#TODOmyModal">
                    Show holding rules
                </button>
            [% END %]
||||||| 5cd1896d7b
                [% IF whyicantreserve %]
                    <button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#TODOmyModal">
                        Show holding rules
                    </button>
                [% END %]
            </h1>
=======
                [% IF whyicantreserve %]
                    <button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#holdruleschecker">
                        [% t('Show holding rules') %]
                    </button>
                [% END %]
            </h1>
>>>>>>> 90ca41fd30b59be81f2ed85fb889a9e91e768222

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions