black7375 / binary-conflict

`binary-conflict` improves git's binary merge behavior.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

`binary-conflict` improves git's binary merge behavior.

License:MIT License


Languages

Language:Rust 61.7%Language:Shell 38.3%