1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
6 <meta name=
"generator" content=
"AsciiDoc 8.2.5" />
7 <style type=
"text/css">
9 p
, li
, dt
, dd
, div
, pre
, h1
, h2
, h3
, h4
, h5
, h6
{
11 border: 1px solid red;
16 margin: 1em 5% 1em 5%;
21 text-decoration: underline
;
39 h1
, h2
, h3
, h4
, h5
, h6
{
41 font-family: sans-serif
;
48 border-bottom: 2px solid silver
;
66 border: 1px solid silver
;
81 font-family: sans-serif
;
88 font-family: sans-serif
;
92 font-family: sans-serif
;
94 border-top: 2px solid silver
;
100 padding-bottom: 0.5em;
104 padding-bottom: 0.5em;
108 div
.tableblock
, div
.imageblock
, div
.exampleblock
, div
.verseblock
,
109 div
.quoteblock
, div
.literalblock
, div
.listingblock
, div
.sidebarblock
,
110 div
.admonitionblock
{
113 margin-bottom: 1.5em;
115 div
.admonitionblock
{
117 margin-bottom: 2.5em;
120 div
.content
{ /* Block element content. */
124 /* Block element titles. */
125 div
.title
, caption
.title
{
126 font-family: sans-serif
;
130 margin-bottom: 0.5em;
136 td div
.title:first-child
{
139 div
.content div
.title:first-child
{
142 div
.content
+ div
.title
{
146 div
.sidebarblock
> div
.content
{
148 border: 1px solid silver
;
155 div
.listingblock
> div
.content
{
156 border: 1px solid silver
;
161 div
.quoteblock
> div
.content
{
168 div
.verseblock
+ div
.attribution
{
172 div
.admonitionblock
.icon
{
176 text-decoration: underline
;
178 padding-right: 0.5em;
180 div
.admonitionblock td
.content
{
182 border-left: 2px solid silver
;
185 div
.exampleblock
> div
.content
{
186 border-left: 2px solid silver
;
190 div
.verseblock div
.content
{
194 div
.imageblock div
.content
{ padding-left: 0; }
195 div
.imageblock img
{ border: 1px solid silver
; }
196 span
.image img
{ border-style: none
; }
200 margin-bottom: 0.8em;
212 list-style-position: outside
;
215 list-style-type: lower-alpha
;
218 div
.tableblock
> table
{
219 border: 3px solid
#527bbd;
222 font-family: sans-serif
;
231 margin-bottom: 0.8em;
239 padding-right: 0.8em;
246 div#footer-badges
{ display: none
; }
251 font-family: sans-serif
;
255 margin-bottom: 0.1em;
258 div
.toclevel1
, div
.toclevel2
, div
.toclevel3
, div
.toclevel4
{
274 include1::./stylesheets
/xhtml11-manpage
.css
[]
275 /* Workarounds for IE6's broken and incomplete CSS2. */
277 div
.sidebar-content
{
279 border: 1px solid silver
;
282 div
.sidebar-title
, div
.image-title
{
283 font-family: sans-serif
;
286 margin-bottom: 0.5em;
289 div
.listingblock div
.content
{
290 border: 1px solid silver
;
295 div
.quoteblock-content
{
299 div
.exampleblock-content
{
300 border-left: 2px solid silver
;
304 /* IE6 sets dynamically generated links as visited. */
305 div#toc
a:visited
{ color: blue
; }
307 <title>git-whatchanged(
1)
</title>
312 git-whatchanged(
1) Manual Page
315 <div class=
"sectionbody">
317 Show logs with difference each commit introduces
322 <div class=
"sectionbody">
323 <div class=
"para"><p><em>git whatchanged
</em> <option
>…</p></div>
325 <h2 id=
"_description">DESCRIPTION
</h2>
326 <div class=
"sectionbody">
327 <div class=
"para"><p>Shows commit logs and diff output each commit introduces. The
328 command internally invokes
<em>git rev-list
</em> piped to
329 <em>git diff-tree
</em>, and takes command line options for both of
330 these commands.
</p></div>
331 <div class=
"para"><p>This manual page describes only the most frequently used options.
</p></div>
333 <h2 id=
"_options">OPTIONS
</h2>
334 <div class=
"sectionbody">
335 <div class=
"vlist"><dl>
341 Show textual diffs, instead of the git internal diff
342 output format that is useful only to tell the changed
343 paths and their nature of changes.
351 Limit output to
<n
> commits.
355 <since
>..
<until
>
359 Limit output to between the two named commits (bottom
360 exclusive, top inclusive).
368 Show git internal diff output, but for the whole tree,
369 not just the top level.
377 By default, differences for merge commits are not shown.
378 With this flag, show differences to that commit from all
381 <div class=
"para"><p>However, it is not very useful in general, although it
382 <strong>is
</strong> useful on a file-by-file basis.
</p></div>
385 --pretty[=
<em><format
></em>]
388 --format[=
<em><format
></em>]
392 Pretty-print the contents of the commit logs in a given format,
393 where
<em><format
></em> can be one of
<em>oneline
</em>,
<em>short
</em>,
<em>medium
</em>,
394 <em>full
</em>,
<em>fuller
</em>,
<em>email
</em>,
<em>raw
</em> and
<em>format:
<string
></em>.
395 When omitted, the format defaults to
<em>medium
</em>.
397 <div class=
"para"><p>Note: you can specify the default pretty format in the repository
398 configuration (see
<a href=
"git-config.html">git-config(
1)
</a>).
</p></div>
405 Instead of showing the full
40-byte hexadecimal commit object
406 name, show only a partial prefix. Non default number of
407 digits can be specified with
"--abbrev=<n>" (which also modifies
408 diff output, if it is displayed).
410 <div class=
"para"><p>This should make
"--pretty=oneline" a whole lot more readable for
411 people using
80-column terminals.
</p></div>
418 This is a shorthand for
"--pretty=oneline --abbrev-commit"
423 --encoding[=
<encoding
>]
427 The commit objects record the encoding used for the log message
428 in their encoding header; this option can be used to tell the
429 command to re-code the commit log message in the encoding
430 preferred by the user. For non plumbing commands this
438 --show-notes[=
<ref
>]
442 Show the notes (see
<a href=
"git-notes.html">git-notes(
1)
</a>) that annotate the
443 commit, when showing the commit log message. This is the default
444 for
<tt>git log
</tt>,
<tt>git show
</tt> and
<tt>git whatchanged
</tt> commands when
445 there is no
<tt>--pretty
</tt>,
<tt>--format
</tt> nor
<tt>--oneline
</tt> option is
446 given on the command line.
448 <div class=
"para"><p>With an optional argument, add this ref to the list of notes. The ref
449 is taken to be in
<tt>refs/notes/
</tt> if it is not qualified.
</p></div>
452 --[no-]standard-notes
456 Enable or disable populating the notes ref list from the
457 <em>core.notesRef
</em> and
<em>notes.displayRef
</em> variables (or
458 corresponding environment overrides). Enabled by default.
459 See
<a href=
"git-config.html">git-config(
1)
</a>.
464 <h2 id=
"_pretty_formats">PRETTY FORMATS
</h2>
465 <div class=
"sectionbody">
466 <div class=
"para"><p>If the commit is a merge, and if the pretty-format
467 is not
<em>oneline
</em>,
<em>email
</em> or
<em>raw
</em>, an additional line is
468 inserted before the
<em>Author:
</em> line. This line begins with
469 "Merge: " and the sha1s of ancestral commits are printed,
470 separated by spaces. Note that the listed commits may not
471 necessarily be the list of the
<strong>direct
</strong> parent commits if you
472 have limited your view of history: for example, if you are
473 only interested in changes related to a certain directory or
475 <div class=
"para"><p>Here are some additional details for each format:
</p></div>
476 <div class=
"ilist"><ul>
481 <div class=
"literalblock">
482 <div class=
"content">
483 <pre><tt><sha1
> <title line
></tt></pre>
485 <div class=
"para"><p>This is designed to be as compact as possible.
</p></div>
491 <div class=
"literalblock">
492 <div class=
"content">
493 <pre><tt>commit
<sha1
>
494 Author:
<author
></tt></pre>
496 <div class=
"literalblock">
497 <div class=
"content">
498 <pre><tt><title line
></tt></pre>
505 <div class=
"literalblock">
506 <div class=
"content">
507 <pre><tt>commit
<sha1
>
508 Author:
<author
>
509 Date:
<author date
></tt></pre>
511 <div class=
"literalblock">
512 <div class=
"content">
513 <pre><tt><title line
></tt></pre>
515 <div class=
"literalblock">
516 <div class=
"content">
517 <pre><tt><full commit message
></tt></pre>
524 <div class=
"literalblock">
525 <div class=
"content">
526 <pre><tt>commit
<sha1
>
527 Author:
<author
>
528 Commit:
<committer
></tt></pre>
530 <div class=
"literalblock">
531 <div class=
"content">
532 <pre><tt><title line
></tt></pre>
534 <div class=
"literalblock">
535 <div class=
"content">
536 <pre><tt><full commit message
></tt></pre>
543 <div class=
"literalblock">
544 <div class=
"content">
545 <pre><tt>commit
<sha1
>
546 Author:
<author
>
547 AuthorDate:
<author date
>
548 Commit:
<committer
>
549 CommitDate:
<committer date
></tt></pre>
551 <div class=
"literalblock">
552 <div class=
"content">
553 <pre><tt><title line
></tt></pre>
555 <div class=
"literalblock">
556 <div class=
"content">
557 <pre><tt><full commit message
></tt></pre>
564 <div class=
"literalblock">
565 <div class=
"content">
566 <pre><tt>From
<sha1
> <date
>
568 Date:
<author date
>
569 Subject: [PATCH]
<title line
></tt></pre>
571 <div class=
"literalblock">
572 <div class=
"content">
573 <pre><tt><full commit message
></tt></pre>
580 <div class=
"para"><p>The
<em>raw
</em> format shows the entire commit exactly as
581 stored in the commit object. Notably, the SHA1s are
582 displayed in full, regardless of whether --abbrev or
583 --no-abbrev are used, and
<em>parents
</em> information show the
584 true parent commits, without taking grafts nor history
585 simplification into account.
</p></div>
591 <div class=
"para"><p>The
<em>format:
</em> format allows you to specify which information
592 you want to show. It works a little bit like printf format,
593 with the notable exception that you get a newline with
<em>%n
</em>
594 instead of
<em>\n
</em>.
</p></div>
595 <div class=
"para"><p>E.g,
<em>format:
"The author of %h was %an, %ar%nThe title was >>%s<<%n"</em>
596 would show something like this:
</p></div>
597 <div class=
"listingblock">
598 <div class=
"content">
599 <pre><tt>The author of fe6e0ee was Junio C Hamano,
23 hours ago
600 The title was
>>t4119: test autocomputing -p
<n
> for traditional diff input.
<<
603 <div class=
"para"><p>The placeholders are:
</p></div>
604 <div class=
"ilist"><ul>
607 <em>%H
</em>: commit hash
612 <em>%h
</em>: abbreviated commit hash
617 <em>%T
</em>: tree hash
622 <em>%t
</em>: abbreviated tree hash
627 <em>%P
</em>: parent hashes
632 <em>%p
</em>: abbreviated parent hashes
637 <em>%an
</em>: author name
642 <em>%aN
</em>: author name (respecting .mailmap, see
<a href=
"git-shortlog.html">git-shortlog(
1)
</a> or
<a href=
"git-blame.html">git-blame(
1)
</a>)
647 <em>%ae
</em>: author email
652 <em>%aE
</em>: author email (respecting .mailmap, see
<a href=
"git-shortlog.html">git-shortlog(
1)
</a> or
<a href=
"git-blame.html">git-blame(
1)
</a>)
657 <em>%ad
</em>: author date (format respects --date= option)
662 <em>%aD
</em>: author date, RFC2822 style
667 <em>%ar
</em>: author date, relative
672 <em>%at
</em>: author date, UNIX timestamp
677 <em>%ai
</em>: author date, ISO
8601 format
682 <em>%cn
</em>: committer name
687 <em>%cN
</em>: committer name (respecting .mailmap, see
<a href=
"git-shortlog.html">git-shortlog(
1)
</a> or
<a href=
"git-blame.html">git-blame(
1)
</a>)
692 <em>%ce
</em>: committer email
697 <em>%cE
</em>: committer email (respecting .mailmap, see
<a href=
"git-shortlog.html">git-shortlog(
1)
</a> or
<a href=
"git-blame.html">git-blame(
1)
</a>)
702 <em>%cd
</em>: committer date
707 <em>%cD
</em>: committer date, RFC2822 style
712 <em>%cr
</em>: committer date, relative
717 <em>%ct
</em>: committer date, UNIX timestamp
722 <em>%ci
</em>: committer date, ISO
8601 format
727 <em>%d
</em>: ref names, like the --decorate option of
<a href=
"git-log.html">git-log(
1)
</a>
732 <em>%e
</em>: encoding
742 <em>%f
</em>: sanitized subject line, suitable for a filename
752 <em>%N
</em>: commit notes
757 <em>%gD
</em>: reflog selector, e.g.,
<tt>refs/stash@{
1}
</tt>
762 <em>%gd
</em>: shortened reflog selector, e.g.,
<tt>stash@{
1}
</tt>
767 <em>%gs
</em>: reflog subject
772 <em>%Cred
</em>: switch color to red
777 <em>%Cgreen
</em>: switch color to green
782 <em>%Cblue
</em>: switch color to blue
787 <em>%Creset
</em>: reset color
792 <em>%C(
…)
</em>: color specification, as described in color.branch.* config option
797 <em>%m
</em>: left, right or boundary mark
807 <em>%%
</em>: a raw
<em>%
</em>
812 <em>%x00
</em>: print a byte from a hex code
817 <em>%w([
<w
>[,
<i1
>[,
<i2
>]]])
</em>: switch line wrapping, like the -w option of
818 <a href=
"git-shortlog.html">git-shortlog(
1)
</a>.
824 <div class=
"admonitionblock">
827 <div class=
"title">Note
</div>
829 <td class=
"content">Some placeholders may depend on other options given to the
830 revision traversal engine. For example, the
<tt>%g*
</tt> reflog options will
831 insert an empty string unless we are traversing reflog entries (e.g., by
832 <tt>git log -g
</tt>). The
<tt>%d
</tt> placeholder will use the
"short" decoration
833 format if
<tt>--decorate
</tt> was not already provided on the command line.
</td>
836 <div class=
"para"><p>If you add a
<tt>+</tt> (plus sign) after
<em>%
</em> of a placeholder, a line-feed
837 is inserted immediately before the expansion if and only if the
838 placeholder expands to a non-empty string.
</p></div>
839 <div class=
"para"><p>If you add a
<tt>-
</tt> (minus sign) after
<em>%
</em> of a placeholder, line-feeds that
840 immediately precede the expansion are deleted if and only if the
841 placeholder expands to an empty string.
</p></div>
842 <div class=
"ilist"><ul>
847 <div class=
"para"><p>The
<em>tformat:
</em> format works exactly like
<em>format:
</em>, except that it
848 provides
"terminator" semantics instead of
"separator" semantics. In
849 other words, each commit has the message terminator character (usually a
850 newline) appended, rather than a separator placed between entries.
851 This means that the final entry of a single-line format will be properly
852 terminated with a new line, just as the
"oneline" format does.
853 For example:
</p></div>
854 <div class=
"listingblock">
855 <div class=
"content">
856 <pre><tt>$ git log -
2 --pretty=format:%h
4da45bef \
857 | perl -pe '$_ .=
" -- NO NEWLINE\n" unless /\n/'
859 7134973 -- NO NEWLINE
861 $ git log -
2 --pretty=tformat:%h
4da45bef \
862 | perl -pe '$_ .=
" -- NO NEWLINE\n" unless /\n/'
866 <div class=
"para"><p>In addition, any unrecognized string that has a
<tt>%
</tt> in it is interpreted
867 as if it has
<tt>tformat:
</tt> in front of it. For example, these two are
868 equivalent:
</p></div>
869 <div class=
"listingblock">
870 <div class=
"content">
871 <pre><tt>$ git log -
2 --pretty=tformat:%h
4da45bef
872 $ git log -
2 --pretty=%h
4da45bef
</tt></pre>
877 <h2 id=
"_examples">Examples
</h2>
878 <div class=
"sectionbody">
879 <div class=
"vlist"><dl>
881 git whatchanged -p v2.6
.12.. include/scsi drivers/scsi
885 Show as patches the commits since version
<em>v2.6
.12</em> that changed
886 any file in the include/scsi or drivers/scsi subdirectories
890 git whatchanged
--since=
"2 weeks ago" -- gitk
894 Show the changes during the last two weeks to the file
<em>gitk
</em>.
895 The
"--" is necessary to avoid confusion with the
<strong>branch
</strong> named
901 <h2 id=
"_author">Author
</h2>
902 <div class=
"sectionbody">
903 <div class=
"para"><p>Written by Linus Torvalds
<torvalds@osdl.org
> and
904 Junio C Hamano
<gitster@pobox.com
></p></div>
906 <h2 id=
"_documentation">Documentation
</h2>
907 <div class=
"sectionbody">
908 <div class=
"para"><p>Documentation by David Greaves, Junio C Hamano and the git-list
<git@vger.kernel.org
>.
</p></div>
910 <h2 id=
"_git">GIT
</h2>
911 <div class=
"sectionbody">
912 <div class=
"para"><p>Part of the
<a href=
"git.html">git(
1)
</a> suite
</p></div>
915 <div id=
"footer-text">
916 Last updated
2010-
04-
24 02:
56:
12 UTC