git-whatchanged

Show commit logs with file-level diff information

TLDR

Show commit logs with diffs
$ git whatchanged
Show for specific file
$ git whatchanged [file]
Show with stat
$ git whatchanged --stat
Limit output
$ git whatchanged -n [10]
Show since date
$ git whatchanged --since="[2 weeks ago]"

SYNOPSIS

git whatchanged [options] [paths...]

DESCRIPTION

git whatchanged shows logs with the difference each commit introduces. It is essentially equivalent to `git log --raw --no-merges`, making it easier to see which files were affected by each commit.

PARAMETERS

-n num

Limit number of commits.
--stat
Show diffstat.
--since date
Commits since date.
--until date
Commits until date.
-p
Show patch.

INSTALL

sudo apt install git
sudo dnf install git
sudo pacman -S git
sudo apk add git
sudo zypper install git
brew install git
nix profile install nixpkgs#git

CAVEATS

This command is deprecated and scheduled for removal in a future Git release. Use `git log --raw` instead. When limiting output to a path, add `--` before the path to avoid ambiguity with branch names, e.g. `git whatchanged -- [file]`.

SEE ALSO

git-log(1), git-diff(1)

RESOURCES

Documentation