Closed Ajhad1 closed 4 years ago
If you are really using colordiff 1.0.13 then that’s ancient. Try with most recent version. In particular, version 1.0.14 (released 2015) introduced a lot of extra support for side-by-side diffs.
Thank you for responding.
CentOS 7 EPEL only has version 1.0.13 but I have submitted a bug report to update the release to at least 1.0.14 here https://bugzilla.redhat.com/show_bug.cgi?id=1868695
I am not sure about their process but I have linked that report to this one so they can see your comment.
CentOS 7 is a current supported release, it really should have a more recent version than 1.0.13 which was released in 2012! I’m assuming that’s all it has because when CentOS 7.0 was released in 2014 that was the current version: perhaps no-one is maintaining the package there any more? There have been a number of releases since then, see https://www.colordiff.org/archive/
Anyway a new version will solve your issue, so I’ll close this one. Good luck :-)
The version included in CentOS 7 EPEL has been updated to colordiff 1.0.19 https://bugzilla.redhat.com/show_bug.cgi?id=1868695#c14
Thank you for responding.
Also updated in EPEL 6: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-f86c8b7635
I get the same issue with colordiff 1.0.19
on both Ubuntu and MacOS, where the output is identical to that of diff
I get the same issue with
colordiff 1.0.19
on both Ubuntu and MacOS, where the output is identical to that ofdiff
Hi @alexcanepa - this is an old issue which has been closed. You haven't provided much detail of the problem you are seeing, please could you open a new issue with as much detail as possible about your setup and I'll take a look?
For the life of me, I cannot get
colordiff
to output color to the terminal. I feel like I am missing something simple.Example of no color output
Environment:
cat /etc/centos-release
= CentOS Linux release 7.5.1804 (Core)colordiff --version
= diff (GNU diffutils) 3.3sudo yum info diffutils
= Version : 3.3 | Release : 5.el7sudo yum info colordiff
= Version : 1.0.13 | Release : 2.el7The specific command I am trying:
\colordiff -y --left-column /opt/projects/openidm/subscribers/conf/authentication.json /opt/projects/git/subscribers/conf/authentication.json
Commands I have tried but will not output color:
\colordiff -y --left-column <File-1> <File-2>
\colordiff -y --left-column --difftype=diffy <File-1> <File-2>
Commands that will output color in the terminal for all files:
\colordiff <File-1> <File-2>
\colordiff -y --ignore-trailing-space <File-1> <File-2>
\colordiff -y --ignore-trailing-space --suppress-common-lines <File-1> <File-2>
\colordiff -y --left-column --ignore-trailing-space --suppress-common-lines <File-1> <File-2>
Commands that output color depending on the type of "diffs" in the files:
\colordiff -y --left-column --suppress-common-lines <File-1> <File-2>
\colordiff -y --left-column --suppress-common-lines --difftype=diffy <File-1> <File-2>
\colordiff -y --suppress-common-lines <File-1> <File-2>
\colordiff -y --suppress-common-lines --difftype=diffy <File-1> <File-2>
\colordiff -y <File-1> <File-2>
\colordiff -y --difftype=diffy <File-1> <File-2>
\diff -y <File-1> <File-2> | \colordiff
\diff -y <File-1> <File-2> | \colordiff --difftype=diffy
Note: I have preceded most commands with a
\
to make sure no aliases are involved.Update: After trying multiple files for comparison, it turns out that the original files I was comparing had a trailing space that was causing an issue. That said, the issue still requires that I add
--suppress-common-lines
to my original command, even though in my case, that only removes 2 lines from the output.Only working edge case for -y --left-column