qmetrics.net

diff-so-fancy

Human-readable formatter for git and diff output

diff-so-fancy reformats git diff and unified diff output for easier reading. Install it on your PATH or configure git to pipe diffs through it.

Overview

diff-so-fancy is a command-line formatter that turns dense machine-oriented diffs into clearer text for review. The goal is to make changes easier to read while scanning patches or pull requests.

You can wire it into git so every diff uses the tool via pager settings, or pipe unified diff output manually with the diff -u flag. Recursive diff mode with -r or --recursive is supported.

Formatting options control empty-line highlighting, simplified hunk headers, stripping leading plus and minus markers, Unicode or ASCII ruler lines, ruler width, boxed file headers in git show, shorter single-line headers, and optional integration with sem summaries.

Distribution paths include copying the script from releases, npm, Homebrew, Fedora and Arch packages, and a Debian or Ubuntu PPA. Packaging issues are handled by those downstream channels when applicable.

Key features

  • Reformats git diff output
  • Pipes unified diff input
  • Simplified hunk header lines
  • Optional Unicode ruler lines
  • Configurable file name boxes
  • Strip leading plus and minus signs
  • Recursive diff support
  • Tunable empty-line highlighting

Use cases

  • Reading git diffs in the terminal
  • Code review in the shell
  • Comparing files with diff -u
  • Custom git pager setup

Tags

Similar software

Lazygit

Terminal user interface for everyday Git workflows

Lazygit wraps common Git operations in a keyboard-driven terminal UI. You can stage partial changes, rebase, cherry-pick, and inspect history without memorizing fragile command sequences.

★ 84.1k⟳ 5 days agoMIT

Gitea

Self-hosted Git forge with CI/CD and packages

Gitea is an all-in-one software development service you can run on your own infrastructure. It combines Git hosting with issues, reviews, project boards, package registries, and Gitea Actions CI/CD.

★ 59.3k⟳ todayMIT
Build & DeploymentSelf-hostable
Open Source Alternative to:GitHub

Gogs

Self-hosted Git service with web collaboration tools

Gogs hosts Git repositories over SSH and HTTP(S) and adds issues, pull requests, wikis, and organization features through a browser UI.

★ 48k⟳ 2 days agoMIT

GitHub CLI

Official GitHub terminal client

GitHub CLI brings issues, pull requests, and other GitHub workflows to the terminal beside git. It works with GitHub.com, Enterprise Cloud, and supported Enterprise Server deployments.

★ 47.3k⟳ yesterdayMIT

Harness

End-to-end developer platform with SCM, CI/CD, and registries

Harness Open Source combines code hosting, automated DevOps pipelines, hosted development environments called Gitspaces, and artifact registries in one platform.

★ 39k⟳ yesterdayApache-2.0
Build & DeploymentSelf-hostable
Open Source Alternative to:GitHub

Husky

Lightweight native Git hooks for Node projects

Husky wires Git hooks so teams can lint commit messages, run tests, or check code on commit and push. It uses core.hooksPath, stays around two kilobytes gzipped, and supports macOS, Linux, and Windows.

★ 35.4k⟳ 8 months agoMIT