rhysd / conflict-marker.vim

Weapon to fight against conflicts in Vim.
488 stars 18 forks source link

Feature enable common ancestors (diff3) #13

Closed ghost closed 4 years ago

ghost commented 4 years ago

What's this PR?

This pr changes as it can recognize common ancestors part.

Description

When merge.conflictstyle = diff3 is set, git shows common ancestors with mark |||||||.

Right now, conflict-marker.vim recognizes it as ours part.

ss 3

If you command ConflictMarkerOurselves, common ancestors remains. It's not as expected.

ss 4

Therefore, I make it be able to recognize common ancestors part. This's compatible with merge.conflictstyle = default.

default highlight

ss

With user highlight

ss 1

no problem with merge.conflictstyle is default

ss 2

remarks

ghost commented 4 years ago

I now realize there is an issue about this.

https://github.com/rhysd/conflict-marker.vim/issues/2

ghost commented 4 years ago

@rhysd Thank you for reviewing. I fixed two things you pointed out.