'\" t
.\"     Title: git-whatchanged
.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 04/20/2026
.\"    Manual: Git Manual
.\"    Source: Git 2.54.0
.\"  Language: English
.\"
.TH "GIT\-WHATCHANGED" "1" "04/20/2026" "Git 2\&.54\&.0" "Git Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
git-whatchanged \- Show logs with differences each commit introduces
.SH "SYNOPSIS"
.sp
.nf
\fBgit\fR \fBwhatchanged\fR \fI<option>\fR\&...\:
.fi
.SH "WARNING"
.sp
\fBgit\fR \fBwhatchanged\fR has been deprecated and is scheduled for removal in a future version of Git, as it is merely \fBgit\fR \fBlog\fR with different defaults\&.
.SH "DESCRIPTION"
.sp
Shows commit logs and diff output each commit introduces\&.
.sp
New users are encouraged to use \fBgit-log\fR(1) instead\&. The \fBwhatchanged\fR command is essentially the same as \fBgit-log\fR(1) but defaults to showing the raw format diff output and skipping merges:
.sp
.if n \{\
.RS 4
.\}
.nf
git log \-\-raw \-\-no\-merges
.fi
.if n \{\
.RE
.\}
.sp
The command is primarily kept for historical reasons; fingers of many people who learned Git long before \fBgit\fR \fBlog\fR was invented by reading the Linux kernel mailing list are trained to type it\&.
.SH "EXAMPLES"
.PP
\fBgit\fR \fBwhatchanged\fR \fB\-p\fR \fBv2\&.6\&.12\fR\fB\&.\&.\fR \fBinclude/scsi\fR \fBdrivers/scsi\fR
.RS 4
Show as patches the commits since version
\fIv2\&.6\&.12\fR
that changed any file in the include/scsi or drivers/scsi subdirectories
.RE
.PP
\fBgit\fR \fBwhatchanged\fR \fB\-\-since=\fR"2 \fBweeks\fR \fBago\fR" \fB\-\-\fR \fBgitk\fR
.RS 4
Show the changes during the last two weeks to the file
\fIgitk\fR\&. The "\-\-" is necessary to avoid confusion with the
\fBbranch\fR
named
\fIgitk\fR
.RE
.SH "GIT"
.sp
Part of the \fBgit\fR(1) suite
