Skip to main content

Git diff tool that shows a tree of changed files followed by their full content.

PyPI Version Supported Python versions Build Status Documentation Status llms.txt - documentation for LLMs MIT Coverage

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

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.

Author

Artur Barseghyan <artur.barseghyan@gmail.com>

Release files for git-dump-diff 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-dump-diff 0.1.1
File Size Uploaded
git_dump_diff-0.1.1.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for git-dump-diff 0.1.1
File Interpreter ABI Platform
git_dump_diff-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.3 kB

Release files / git_dump_diff-0.1.1.tar.gz

Download URL git_dump_diff-0.1.1.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0accff11dda3968ab56ff60bd28ade7350628a49176d8164cbe2a97023d29d64
BLAKE2b-256 checksum
How to use checksums
5e21ef1de6c5c1a9c1c1f944f750734eac091afae6f439dabcc98ac687ef4cff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / git_dump_diff-0.1.1-py3-none-any.whl

Download URL git_dump_diff-0.1.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6f845f5ca61dd3bb9fbdfbfa0d4665a7bd6d624aee2a2b9cd939489f27e74df
BLAKE2b-256 checksum
How to use checksums
c54c881d949055ce38629aedd9e375fa9a7459b64e182362e4ec8f027ebdbe4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page