blob: 6c8f510c3f6398630da248fd356a00f69a6d9471 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-whatchanged(1)
2==================
3
4NAME
5----
Junio C Hamano01078922006-03-10 00:31:476git-whatchanged - Show logs with difference each commit introduces
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamano15567bc2011-07-23 00:51:5911[verse]
Junio C Hamanofce7c7e2008-07-02 03:06:3812'git whatchanged' <option>...
Junio C Hamano1a4e8412005-12-27 08:17:2313
14DESCRIPTION
15-----------
16Shows commit logs and diff output each commit introduces. The
Junio C Hamano1aa40d22010-01-21 17:46:4317command internally invokes 'git rev-list' piped to
18'git diff-tree', and takes command line options for both of
Junio C Hamano1a4e8412005-12-27 08:17:2319these commands.
20
21This manual page describes only the most frequently used options.
22
23
24OPTIONS
25-------
26-p::
27Show textual diffs, instead of the git internal diff
28output format that is useful only to tell the changed
29paths and their nature of changes.
30
Junio C Hamanof9771f62007-01-17 17:42:3031-<n>::
Junio C Hamano1a4e8412005-12-27 08:17:2332Limit output to <n> commits.
33
34<since>..<until>::
35Limit output to between the two named commits (bottom
36exclusive, top inclusive).
37
38-r::
39Show git internal diff output, but for the whole tree,
40not just the top level.
41
Junio C Hamano1a4e8412005-12-27 08:17:2342-m::
43By default, differences for merge commits are not shown.
44With this flag, show differences to that commit from all
45of its parents.
Junio C Hamanoadeb8992006-03-24 08:11:0646+
47However, it is not very useful in general, although it
48*is* useful on a file-by-file basis.
Junio C Hamano1a4e8412005-12-27 08:17:2349
Junio C Hamano86bcccc2008-03-08 09:33:5550include::pretty-options.txt[]
51
52include::pretty-formats.txt[]
53
Junio C Hamano1a4e8412005-12-27 08:17:2354Examples
55--------
Junio C Hamano16ebcd02011-08-05 00:05:4556`git whatchanged -p v2.6.12.. include/scsi drivers/scsi`::
Junio C Hamano1a4e8412005-12-27 08:17:2357
58Show as patches the commits since version 'v2.6.12' that changed
59any file in the include/scsi or drivers/scsi subdirectories
60
Junio C Hamanob76a6862012-05-02 22:02:4661`git whatchanged --since="2 weeks ago" -- gitk`::
Junio C Hamano1a4e8412005-12-27 08:17:2362
63Show the changes during the last two weeks to the file 'gitk'.
64The "--" is necessary to avoid confusion with the *branch* named
65'gitk'
66
Junio C Hamano1a4e8412005-12-27 08:17:2367GIT
68---
Junio C Hamanof7c042d2008-06-06 22:50:5369Part of the linkgit:git[1] suite