Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.18 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.18 KB

Binary Conflict

binary-conflict improves git's binary merge behavior. (It's for proof of concept)

Git only indicates that files have coflicted, and should be confirmed through git checkout --ours -- <path> or git checkout --theirs -- <path>.

image

This project makes it easy to select by showing files base branch and their branch.

image

Usage

After installing this, define merge behavior in .git/config file.

[merge "binary-merge"]
	name = Create base, ours, theirs file for conflict
	driver = ../target/release/binary-conflict %O %A %B %P

Then, You can apply it in .gitattributes file.

[attr]BINARY diff=binary merge=binary-merge -text

*.png BINARY

Sample

cd example && ./example.sh

Grapic source