Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.08 KB

File metadata and controls

44 lines (26 loc) · 1.08 KB

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.