qmetrics.net

Difftastic

Structural diff tool that understands syntax

Difftastic screenshot

Difftastic compares files by parsing their syntax rather than diffing line by line. It is a CLI that highlights real code changes, including reflows across lines.

Overview

Difftastic is a command-line diff utility built around syntax-aware comparison. It parses source with tree-sitter and reports which syntactic pieces changed, showing them in side-by-side context so reviewers can see what moved versus what was merely reformatted.

When whitespace is only indentation or formatting, the tool can treat it differently from meaningful edits. If a formatter splits an expression across lines, the diff still reflects the underlying change instead of treating every new line as novel content. For unrecognized file extensions it falls back to a line-oriented diff with word highlighting.

It supports more than thirty programming languages plus formats such as JSON, YAML, HTML, and HCL, with a manual listing the full set. Git and Mercurial integration is documented, and it can read merge conflict markers to diff the two conflict sides in one file. A check mode compares abstract syntax without printing a full diff for faster change detection.

Output targets human review: it does not emit applyable patches, and it does not perform merges. Large files with many edits can be slow and memory-heavy, and parse errors cause a conservative fallback to line-based diffing.

Key features

  • Tree-sitter syntax-aware diffs
  • Side-by-side highlighted output
  • Git and Mercurial integration
  • Merge conflict marker support
  • Fast same-AST check mode
  • 30+ language parsers
  • Word-level fallback for unknown types
  • Real before and after line numbers

Use cases

  • Reviewing formatted code changes
  • Inspecting git diffs with structure
  • Reading merge conflict changes
  • CI syntactic change detection
  • Comparing config files like JSON

Tags

Similar software

lazygit

Terminal user interface for everyday Git workflows

Lazygit runs in your terminal inside a Git repository and provides keyboard-driven panes to stage, commit, rebase, cherry-pick, bisect, and inspect history without memorizing long Git command sequences.

  • Line-level and hunk staging
  • Interactive rebase from the TUI
  • Cherry-pick and bisect support
GoLinux, macOS, Windows, CLIDetails →
★ 84.3k⟳ todayMIT

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.

  • Git repository hosting and review
  • Issues, labels, and kanban boards
  • Gitea Actions CI/CD workflows
GoWeb, Linux, macOS, WindowsDetails →
★ 59.5k⟳ todayMIT
Open Source Alternative to:BitbucketCircleCI+2

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.

  • Git over SSH and HTTP(S)
  • Browser code browse and edit
  • Issues and pull requests
GoWeb, Linux, macOS, WindowsDetails →
★ 48k⟳ 8 days agoMIT
Open Source Alternative to:BitbucketGitHub

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.

  • Pull request workflows
  • Issue management
  • Git-adjacent terminal UX
GoLinux, macOS, Windows, CLIDetails →
★ 47.5k⟳ todayMIT

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.

  • Git source control hosting
  • CI/CD pipelines in Docker
  • Hosted Gitspaces dev environments
GoWeb, Linux, macOS, WindowsDetails →
★ 39k⟳ yesterdayApache-2.0
Build & DeploymentSelf-hostable
Open Source Alternative to:BitbucketCircleCI+3

delta

Syntax-highlighting pager for git and diff output

delta replaces less for git show, diff, and blame with themes, word-level highlights, and side-by-side layout. Configure it as git’s pager or launch an interactive TUI on top of gitu.

  • Git-aware syntax highlighting
  • Side-by-side diff view
  • Word-level diff emphasis
RustWindows, CLIDetails →
★ 33.1k⟳ todayMIT