git whatchanged
Inspection & Comparison
Show logs with the files each commit changed (legacy)
The 'git whatchanged' command is an old form of git log that also prints, for each commit, a raw line per changed file: file modes, blob ids and a status letter (A added, M modified, D deleted). It skips merge commits. Recent Git versions discourage it: use git log --raw, --stat or --name-status instead.
Synopsis
git whatchanged [<options>] [<revision-range>][ ] optional| or<arg> placeholder... repeatable--flag option
Examples
Last commits
git whatchanged -3The three latest commits with their changed files.
Modern equivalent
git log --raw --no-merges -3The same information with git log.
Workflow Examples
1
git log --name-status -5The modern way
Troubleshooting
whatchanged refuses to run
Cause: Newer Git deprecates it
Use git log --raw, or add --i-still-use-this
Tips & Pitfalls
Best Practices
- ✓Prefer git log --stat or --name-status.
Common Mistakes
- ✗Using it in new scripts — newer Git refuses it without --i-still-use-this.
FAQ
A:
You will meet it in old tutorials and scripts; recognising its output helps.