Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 1 | git-whatchanged(1) |
| 2 | ================== |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 3 | |
| 4 | NAME |
| 5 | ---- |
Fredrik Kuivinen | 7bd7f28 | 2006-03-09 17:24:50 +0100 | [diff] [blame] | 6 | git-whatchanged - Show logs with difference each commit introduces |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Martin von Zweigbergk | 7791a1d | 2011-07-01 22:38:26 -0400 | [diff] [blame] | 11 | [verse] |
Jonathan Nieder | b1889c3 | 2008-06-30 01:09:04 -0500 | [diff] [blame] | 12 | 'git whatchanged' <option>... |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 13 | |
| 14 | DESCRIPTION |
| 15 | ----------- |
| 16 | Shows commit logs and diff output each commit introduces. The |
Thomas Rast | 0b444cd | 2010-01-10 00:33:00 +0100 | [diff] [blame] | 17 | command internally invokes 'git rev-list' piped to |
| 18 | 'git diff-tree', and takes command line options for both of |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 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 | |
Junio C Hamano | 7055172 | 2007-01-17 01:11:56 -0800 | [diff] [blame] | 31 | -<n>:: |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 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 | |
Junio C Hamano | 15fad5f | 2005-10-15 23:49:27 -0700 | [diff] [blame] | 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. |
Francis Daly | b0d08a5 | 2006-03-22 09:53:57 +0000 | [diff] [blame] | 46 | + |
| 47 | However, it is not very useful in general, although it |
| 48 | *is* useful on a file-by-file basis. |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 49 | |
Denis Cheng | 5348337 | 2008-03-02 17:05:51 +0800 | [diff] [blame] | 50 | include::pretty-options.txt[] |
| 51 | |
| 52 | include::pretty-formats.txt[] |
| 53 | |
Linus Torvalds | bd66361 | 2005-10-30 20:05:32 -0800 | [diff] [blame] | 54 | Examples |
| 55 | -------- |
Jeff King | 5d2fc91 | 2011-08-03 20:13:29 -0600 | [diff] [blame] | 56 | `git whatchanged -p v2.6.12.. include/scsi drivers/scsi`:: |
Linus Torvalds | bd66361 | 2005-10-30 20:05:32 -0800 | [diff] [blame] | 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 | |
Jeff King | 6cf378f | 2012-04-26 04:51:57 -0400 | [diff] [blame] | 61 | `git whatchanged --since="2 weeks ago" -- gitk`:: |
Linus Torvalds | bd66361 | 2005-10-30 20:05:32 -0800 | [diff] [blame] | 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 | |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 67 | GIT |
| 68 | --- |
Christian Couder | 9e1f0a8 | 2008-06-06 09:07:32 +0200 | [diff] [blame] | 69 | Part of the linkgit:git[1] suite |