Git diff tool that shows a tree of changed files followed by their full content.
Project description
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.
Features
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 less automatically for easy scrolling.
No Dependencies: Uses only standard Python libraries.
Prerequisites
Python 3.10+
Installation
uv tool (recommended)
uv tool install git-dump-diff
pipx
pipx install git-dump-diff
Usage
Once installed, use the standard Git range syntax (base..target).
Compare branches
git dump-diff main..feature-branch
Compare commits
git dump-diff HEAD~3..HEAD
Options
--version: Show current version.
--help: Show help message.
How it works
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.
Tests
Run the tests with pytest:
pytest
Writing documentation
Keep 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
**************************
License
MIT
Support
For issues, visit GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git_dump_diff-0.1.1.tar.gz.
File metadata
- Download URL: git_dump_diff-0.1.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0accff11dda3968ab56ff60bd28ade7350628a49176d8164cbe2a97023d29d64
|
|
| MD5 |
00440cb6ddfbc296c79d454704cc2995
|
|
| BLAKE2b-256 |
5e21ef1de6c5c1a9c1c1f944f750734eac091afae6f439dabcc98ac687ef4cff
|
File details
Details for the file git_dump_diff-0.1.1-py3-none-any.whl.
File metadata
- Download URL: git_dump_diff-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6f845f5ca61dd3bb9fbdfbfa0d4665a7bd6d624aee2a2b9cd939489f27e74df
|
|
| MD5 |
db28cd473ee3294f837a6edd70be54c6
|
|
| BLAKE2b-256 |
c54c881d949055ce38629aedd9e375fa9a7459b64e182362e4ec8f027ebdbe4d
|