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