Quantcast
Viewing all articles
Browse latest Browse all 12

CDiff

If you use Mercurial or Git at the shell, cdiff is a useful tool to have around. By default, hg diff or git diff is displayed in the classic diff format. This displays the before-after changed lines one below the other. Personally, I find this very confusing. I very much prefer the side-by-side diff view used in GUI diff programs. cdiff is a great way to get this side-by-side diff view at the shell in full colors!

Install

cdiff is a Python module that can be installed from PyPI using this command:

$ sudo pip install cdiff

Note: Do not confuse this package with the colordiff package that is available in Ubuntu repositories. That is something else!

Usage

Just invoke cdiff in any subdirectory of a Mercurial or Git repository. To get side-by-side view use cdiff -s

Tried with: cdiff 0.9.2, Python 2.7.3 and Ubuntu 12.04 LTS


Tagged: cdiff, diff, git, mercurial Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 12

Trending Articles