Use Unix diff from console

Monday, February 26, 2018 0 Comments

While we invest lots of efforts improving our built-in diff, semantic diff and the graphical merge tools, there are times where you really need to run a diff in a terminal.

How can you configure unix diff to be your diff tool?

Setup your diff tool editing client.conf

All you need to do is to edit your client.conf as follows:

In this case I set up the Unix diff on my Fedora, but of course you could be using sdiff or any other.

Use a separate client.conf for specific purposes

You can simply edit client.conf and modify the diff.

But, if you want to use a different diff for CLI than GUI, then probably you'll be better served by having 2 different client.conf files.

In my case, note I used the following:

cm diff the_file -clientconf=/home/pablo/.plastic4/client.conf.txtdiff

client.conf.txtdiff is the modified client.conf where I setup the command line diff.


Nothing really new under the sun here, just remind you that while we don't ship a console-based diff tool, it takes 1 minute to configure one.

We develop Plastic SCM, a version control that excels in branching and merging, can deal with huge projects and big binary assets natively, and it comes with GUIs and tools to make everything simpler.

If you want to give it a try, download it from here.

We are also the developers of SemanticMerge, and the gmaster Git client.

0 comentarios: