Skip to content

glenntam/colordiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc Go Report Card

colordiff

Colordiff is an updated fork of artyom's 2022 colordiff Go port.

screenshot

Updates

  • Introduces stricter linter checks.
  • Passes context to the subprocess.
  • Reverts coloring to match the original kimmel 1991 colordiff.
  • Adds Makefile for convenience.

Installation

Install Go programming language, then:

go install github.com/glenntam/colordiff@latest

Usage

Exactly the same as the original:

colordiff file1 file2

or

diff -u file1 file2 | colordiff

Motivation

This Go version is distro/arch agnostic and can be installed without root. I needed to create this the moment I was on a remote machine without root access. My eyes would have gone blind without it.

About

Colorized diff on the terminal without needing to install as root

Topics

Resources

License

Stars

Watchers

Forks

Contributors