git-diff-tree
Compare content of tree objects
TLDR
Compare two trees
SYNOPSIS
git diff-tree [options] tree-ish [tree-ish] [files...]
DESCRIPTION
git diff-tree compares the content and mode of blobs found via two tree objects, providing low-level access to Git's internal tree comparison mechanism. This plumbing command forms the foundation for examining differences between commits, branches, or any tree-like structures in Git's object database.
The command accepts one or two tree-ish arguments and outputs the differences in various formats. It can process commits via stdin, enabling efficient batch processing of history. While rarely needed in daily Git use, it underpins many higher-level operations and is essential for scripts and custom diff tools.
PARAMETERS
-r
Recurse into subtrees.-p, --patch
Generate patch.--raw
Raw diff format.--name-only
Show file names only.--name-status
Show status and names.-s
Suppress diff output.--stdin
Read commits from stdin.
SEE ALSO
git-diff(1), git-diff-index(1)
