Git diff tool that shows a tree of changed files followed by their full content.
git-dump-diff is a verbose Git diagnostic tool. It shows a directory tree
of changed files and the full content of added or updated files.
Unlike a standard diff that shows only line changes, this tool lets you see the entire file context. It is ideal for code reviews and auditing feature branches.
- Visual Tree: Shows affected files in a clear directory structure.
- Full Content: Displays the complete final state of new or modified files.
- Binary Safe: Detects and skips binary files to keep your terminal clean.
- Pager Support: Works with
lessautomatically for easy scrolling. - No Dependencies: Uses only standard Python libraries.
Python 3.10+
uv tool install git-dump-diffpipx install git-dump-diffOnce installed, use the standard Git range syntax (base..target).
git dump-diff main..feature-branchgit dump-diff HEAD~3..HEAD--version: Show current version.--help: Show help message.
Git recognizes any executable in your PATH starting with git- as a
subcommand. This package installs a git-dump-diff entry point, making it
available as git dump-diff.
Run the tests with pytest:
pytestKeep the following hierarchy.
=====
title
=====
header
======
sub-header
----------
sub-sub-header
~~~~~~~~~~~~~~
sub-sub-sub-header
^^^^^^^^^^^^^^^^^^
sub-sub-sub-sub-header
++++++++++++++++++++++
sub-sub-sub-sub-sub-header
**************************
MIT
For issues, visit GitHub.
Artur Barseghyan <artur.barseghyan@gmail.com>