Skip to content

About

Next-Gen Diff, Merge & Sync Studio (Text, AST, Hex, Folders, PDF, Excel, SQLite, Parquet) with PySide6 & Windows 11 Fluent design.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

25 Commits

Folders and files

Diff & Compare Pro Logo

Diff & Compare Pro โ€” Next-Gen Diff & Merge Studio

A high-performance, cross-platform file comparison, 3-way merge, and multi-format data synchronization desktop suite built with Python (PySide6) and modern Windows 11 Fluent Light design principles.

Diff & Compare Pro Fluent Light Hero Artwork

CI Test Suite CodeQL Analysis Application Status Python Framework License: GPL v3 GitHub Discussions Sponsor


๐ŸŒŸ 10 Multi-Format Comparison Studios & Automation Suite

๐ŸŒ Product Website & Interactive Guide: Open docs/index.html (or publish /docs on GitHub Pages) for an interactive Fluent Light overview, commercial feature comparison, and CLI reference.

  1. โ‡„ 2-Way Text, Code & Word (.docx) Diff:

    • Synchronized Bottom Line Details Pane: Stacked Left vs Right character-by-character intraline inspector for the active cursor row.
    • Display Scope Filtering: Switch between All Lines, Diffs Only, Context ยฑ3, and Same Only with collapsible hidden-line markers while keeping true 1-based line numbers intact.
    • Read-Only Pane Lock & Interactive Encoding/EOL Converter: Lock baseline files against accidental edits or hunk transfers; click the UTF-8 | LF pill to convert encoding (UTF-8, UTF-8 BOM, UTF-16 LE/BE, Windows-1252) or line endings (LF, CRLF, CR).
    • Word .docx Text & Table Extraction: Open Microsoft Word .docx files directly side-by-side (auto-locked read-only) without requiring Microsoft Word.
    • External File Watcher: Non-blocking reload banner notifies you immediately if an external editor, formatter, or Git command modifies an open file on disk.
    • Tree-sitter AST Semantic Diffing: Structural diffing for Python and JavaScript/TypeScript that detects reordered functions and docstring updates without false-positive line diffs.
    • View Virtualization for 100k+ Lines: Windowed sliding-window rendering keeps memory footprint bounded, rendering massive files smoothly.
    • Diff Minimap & Visual Overview Ruler: 16px navigation gutter displaying color-coded tick marks (green additions, red deletions, blue modifications, orange conflicts, purple moves) with hover tooltips and click-to-jump navigation.
    • Custom Unimportant Difference Rules & Presets: Define and persist custom regex substitution rules in Noise Filters alongside timestamps, GUIDs, commit hashes, and comments, and toggle Ignore Unimportant in one click.
    • Side-by-Side HTML Reports & Unified .patch: Export Fluent Light interactive Side-by-Side HTML reports, .patch files, or copy unified diff directly to clipboard.
    • Manual Alignment ("Align With..."): Explicitly anchor matching lines across panes by right-clicking and selecting Align With... (or pressing Ctrl+Shift+A), then clicking the target line on the opposing editor. Press Ctrl+F7 or click the alignments pill to clear.
    • Find & Replace Bar: Docked search (Ctrl+F / Ctrl+H) with Case Sensitivity (Aa), Regex (.*), and Replace / Replace All.
    • Local-First AI PR Summary & Privacy Shield: Automated Markdown pull request summaries (local Ollama or OpenAI-compatible endpoints) with automated credential and PII scrubbing, or 100% zero-outbound offline heuristics.
  2. โง‰ 3-Way Merge Studio:

    • 3 synchronized viewports: Mine (Local) | Base (Ancestor) | Theirs (Remote) + collapsible 4th Merged Output Preview with standard diff3 conflict markers.
    • Resolution actions: Accept Mine, Accept Theirs, Accept Base, Take Both, AI Resolve, full resolution Undo stack, and honors CLI --output destination on save.
  3. ๐Ÿ“ Folder, 3-Way Folder Merge, Archive & Remote Comparison Suite:

    • True 3-Way Folder Merge Studio: Compares Mine (Left), Base (Ancestor), and Theirs (Right) trees, auto-resolves safe additions/deletions/modifications, flags true conflicts, lets you drill down into 3-Way Text Merge on any file, and writes the merged output cleanly.
    • Remote Filesystem Profiles (sftp://, s3://, ftp://, ftps://): Connect remote SSH/SFTP hosts (with strict OpenSSH known_hosts host-key verification), Amazon S3 / MinIO buckets, or FTP/FTPS servers directly in Folder Compare and open remote files side-by-side without saving plaintext passwords to disk.
    • Flatten Folders Mode (Flatten): View all files across nested directory hierarchies in one sortable list by relative path.
    • ยฑ2s Timestamp Tolerance & BLAKE3: Handles FAT/SMB/DST timestamp skew alongside SHA-256, BLAKE3, and Rules-Based modes.
    • Interactive Folder Sync Hub (Sync Hub...): Supports Mirror L->R, Bi-directional Sync, and Update Left/Right with per-row checkboxes and Windows Recycle Bin safe-delete support.
    • HTML & CSV Folder Reports: Export standalone folder audit reports or CSV summaries straight from the ribbon.
    • Smart .gitignore & Virtual Archive VFS: Prunes bloat dirs and browses .zip, .jar, .tar, .tgz entries transparently without extraction.
  4. ๐Ÿ–ผ Visual Media & Document Diff Studio (Images, Multi-Page PDF, SVG):

    • Live (X, Y) RGBA Pixel Inspector: Hover anywhere on the canvas to read Left vs Right RGBA pixel values and per-channel deltas.
    • Interactive Zoom (Fit / 100% / Ctrl+Wheel), Swap & Drag-and-Drop.
    • Multi-Page PDF & EXIF: PyMuPDF (fitz) page rasterization, aligned extracted text diff, EXIF metadata table, Swipe Curtain, Onion-Skin, Pixel Heatmap, Flicker/Blink, and Side-by-Side views.
  5. ๐Ÿ“Š Tabular / Spreadsheet Diff (CSV, TSV, Excel, Parquet, SQLite):

    • Sheet & SQLite table selectors, Float Tolerance, Keyed Row Alignment with duplicate-key reporting, Diff CSV export, and synchronized grids.
  6. ๐ŸŒณ Structured Tree Diff (JSON, YAML, XML) & ๐Ÿ›ก๏ธ 7. API Contract Audit (OpenAPI, GraphQL, Protobuf):

    • JSONPath & XPath query filtering, Semantic Unordered Array matching, recursive search, XML tag rename detection, and breaking vs warning vs additive contract audits.
  7. โšก Hex & Binary Inspection Studio:

    • Virtualized QTableView + Memory-Mapped I/O (MMF): Inspects multi-GB binaries with byte-delta highlighting, Go-to-Offset, Find Hex/ASCII patterns, and live 8/16/32/64-bit integer Data Inspector.
  8. ๐ŸŒฟ Git Working-Tree Changeset Browser (Ctrl+G) & Live Hunk Staging:

    • Browse modified, staged, untracked, and conflicted files across any Git repo (Ctrl+G or Home button) and open HEAD vs Working Copy directly.
    • Stage, unstage, or discard individual hunks via git apply --cached, plus 1-click Tools โ†’ Configure as Git Difftool & Mergetool.
  9. โŒ˜ Command Palette (Ctrl+K) & Headless CI/CD Automation:

  • Universal keyboard launcher (Ctrl+K / Ctrl+Shift+P) across all 10 studios, active view actions, Git tools, and Recent Comparisons.
  • Headless --folder-diff, --diff, and --contract-diff with HTML/JSON reporting and exit codes (0 = match, 1 = mismatch/breaking, 2 = error), plus CLI Stdin Diffing (--diff - <file>), Write-Ahead Log (WAL) crash recovery, and Windows 11 Mica Alt Fluent Light shell integration.

๐Ÿš€ Quickstart & Installation

Prerequisites

Before getting started, review the following requirements:

  • Standalone Windows installer: Designed for Microsoft Windows and does not require a separate Python installation.
  • Running from source: Requires Python 3.10 or later.
  • Python dependencies: Install the required packages listed in requirements.txt.
  • Source-based setup: Ensure Python and pip are available in your environment before installing the project dependencies.

1. Windows Installation (Double-Click Setup EXE)

  • Double-Click Standalone Installer: Run dist/Setup_diff_and_compare_tool.exe
    • Full native Windows installation wizard with ultra-compressed single executable payload.
    • Automatically registers Windows Explorer right-click context menu, App Paths (Win+R), User PATH, Start Menu & Desktop shortcuts, and Windows "Installed Apps" uninstaller.
    • Installs to %LOCALAPPDATA%\Programs\diff_and_compare_tool (requires no Administrator privileges).
  • 1-Click Batch Installer: Double-click Install.cmd inside dist/diff_and_compare_installer/ or windows/.
  • PowerShell Script:
    .\windows\Install-DiffAndCompare.ps1

What gets installed & registered:

  • Deploys application to %LOCALAPPDATA%\Programs\diff_and_compare_tool.
  • Windows Explorer Context Menu: Right-click any file, folder, or directory background (Compare with diff_and_compare_tool, Select Left, Select Right).
  • Windows App Paths: Launch from Win+R or CLI simply by typing diff_and_compare.
  • Windows Installed Apps: Full entry in Windows Settings / Control Panel "Installed Apps" with icon, version, publisher, and native uninstaller (unins000.exe).
  • Shortcuts: Start Menu and Desktop shortcuts.
  • User PATH: Adds directory to user environment PATH.

To uninstall anytime: run unins000.exe, or double-click Uninstall.cmd, or remove via Windows Settings -> Installed Apps.

2. Standalone CLI & Registry Management

# Register all Windows features (Context Menu, App Paths, Installed Apps entry)
python app/main.py --install-all
python app/main.py --uninstall-all

# Shell Context Menu only
python app/main.py --install-shell
python app/main.py --uninstall-shell

# Export customized .reg file for current install
python app/main.py --export-reg Register-MySetup.reg

3. Git Difftool & Mergetool Integration

# Configure as git difftool (using standalone binary or PATH)
git config --global diff.tool diff_and_compare
git config --global difftool.diff_and_compare.cmd "diff_and_compare.exe --diff \"\$LOCAL\" \"\$REMOTE\""

# Or configure using Python source:
# git config --global difftool.diff_and_compare.cmd "\"python\" \"/path/to/diff_and_compare_tool/app/main.py\" --diff \"\$LOCAL\" \"\$REMOTE\""

# Configure as git mergetool (using standalone binary or PATH)
git config --global merge.tool diff_and_compare
git config --global mergetool.diff_and_compare.cmd "diff_and_compare.exe --merge \"\$LOCAL\" \"\$BASE\" \"\$REMOTE\" --output \"\$MERGED\""

# Or configure using Python source:
# git config --global mergetool.diff_and_compare.cmd "\"python\" \"/path/to/diff_and_compare_tool/app/main.py\" --merge \"\$LOCAL\" \"\$BASE\" \"\$REMOTE\" --output \"\$MERGED\""

4. Headless CI/CD Batch Automation

# Folder comparison with HTML report and automated exit code (0 = match, 1 = diff)
python app/main.py --folder-diff src_v1/ src_v2/ --report-html folder_audit.html --exit-code

# File comparison with HTML report
python app/main.py --diff config_prod.json config_staging.json --report-html config_diff.html --exit-code

5. Build Standalone Executables & Installer Packages

# Build binaries for host architecture
python build.py

# Build binaries AND package into turnkey installer folder & release ZIP
python build.py --package

# Build specifically for Windows ARM64
python build.py --target-arch arm64

๐Ÿ”ฎ Strategic Next-Phase Roadmap

  • Native Code Signing & Winget Distribution: Signed Windows installer releases distributed via winget.
  • WebAssembly / GitHub Action Marketplace Packaging: Turnkey GitHub Action wrapper around headless --folder-diff and --contract-diff gates.
  • Audio & Geospatial Studio Plugins: Optional waveform spectral diffing and GeoJSON/Shapefile layer comparison.

๐Ÿ“š Technical Documentation


๐Ÿ’– Support & Sponsoring

diff_and_compare_tool is a free, open-source project created and maintained for developers, engineers, and power users.

If this tool saves you time, streamlines your merge conflicts, or enhances your workflow, please consider sponsoring its development:

Sponsor on GitHub

Where your sponsorship goes:

  • ๐Ÿš€ New Studio Engines: Developing further specialized format comparisons (e.g. 3D meshes, audio waveform, geospatial GIS diffing).
  • ๐Ÿ” Windows Code Signing Certificate: Eliminating Windows SmartScreen warnings on installer executables.
  • โšก Continuous Maintenance & Performance: Keeping AST grammars, PySide6, and BLAKE3 acceleration up to date.
  • ๐ŸŒ Documentation & CI/CD Pipelines: Automated multi-architecture release packaging (x64 and ARM64).

Even if you cannot sponsor financially, you can support the project by:

  • โญ Starring the repository on GitHub.
  • ๐Ÿ“ข Sharing it with colleagues and developer communities.
  • ๐Ÿ’ฌ Joining GitHub Discussions and submitting feedback or pull requests!

๐Ÿค Contributing & Community

Contributions are welcomed!


๐Ÿ“„ License

This project is licensed under the GNU General Public License v3.0 (GPLv3) with trademark reservations for the Diff & Compare Pro brand and assets.

About

Next-Gen Diff, Merge & Sync Studio (Text, AST, Hex, Folders, PDF, Excel, SQLite, Parquet) with PySide6 & Windows 11 Fluent design.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages