]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-whatchanged.txt
Documentation: be consistent about "git-" versus "git "
[thirdparty/git.git] / Documentation / git-whatchanged.txt
CommitLineData
3f971fc4
JH
1git-whatchanged(1)
2==================
3f971fc4
JH
3
4NAME
5----
7bd7f280 6git-whatchanged - Show logs with difference each commit introduces
3f971fc4
JH
7
8
9SYNOPSIS
10--------
b1889c36 11'git whatchanged' <option>...
3f971fc4
JH
12
13DESCRIPTION
14-----------
15Shows commit logs and diff output each commit introduces. The
16command internally invokes 'git-rev-list' piped to
17'git-diff-tree', and takes command line options for both of
18these commands.
19
20This manual page describes only the most frequently used options.
21
22
23OPTIONS
24-------
25-p::
26 Show textual diffs, instead of the git internal diff
27 output format that is useful only to tell the changed
28 paths and their nature of changes.
29
70551726 30-<n>::
3f971fc4
JH
31 Limit output to <n> commits.
32
33<since>..<until>::
34 Limit output to between the two named commits (bottom
35 exclusive, top inclusive).
36
37-r::
38 Show git internal diff output, but for the whole tree,
39 not just the top level.
40
15fad5f4
JH
41-m::
42 By default, differences for merge commits are not shown.
43 With this flag, show differences to that commit from all
44 of its parents.
b0d08a50
FD
45+
46However, it is not very useful in general, although it
47*is* useful on a file-by-file basis.
3f971fc4 48
5348337a
CR
49include::pretty-options.txt[]
50
51include::pretty-formats.txt[]
52
bd663611
LT
53Examples
54--------
b1889c36 55git whatchanged -p v2.6.12.. include/scsi drivers/scsi::
bd663611
LT
56
57 Show as patches the commits since version 'v2.6.12' that changed
58 any file in the include/scsi or drivers/scsi subdirectories
59
b1889c36 60git whatchanged --since="2 weeks ago" \-- gitk::
bd663611
LT
61
62 Show the changes during the last two weeks to the file 'gitk'.
63 The "--" is necessary to avoid confusion with the *branch* named
64 'gitk'
65
66
3f971fc4
JH
67Author
68------
69Written by Linus Torvalds <torvalds@osdl.org> and
70Junio C Hamano <junkio@cox.net>
71
72
73Documentation
74--------------
75Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
76
77GIT
78---
9e1f0a85 79Part of the linkgit:git[1] suite