ymattw / ydiff

View colored, incremental diff in workspace or from stdin with side by side and auto pager support
Other
873 stars 62 forks source link

Add examples for diff conflicting files #70

Closed albfan closed 4 months ago

albfan commented 6 years ago

Diffting conflict files is as easy as doing:

$ cdiff :1:file :2:file
$ cdiff :1:file :3:file

Where:

Things get complicated easily when using rebase command, where our changes become theirs and viceversa

Will it be helpful to add options like

$ cdiff --conflict-12 file
$ cdiff --conflict-13 file
$ cdiff --conflict-23 file

?

Maybe a --reverse option can be added to offer --conflict-21, etc. Or --rebase-12 that implies --conflict-12 --reverse etc