summaryrefslogtreecommitdiff
path: root/devdocs/git/git-whatchanged.html
blob: 6ea4cf0e413517af2c1c9b9f6e7b06b6282b38bb (plain)
1
2
3
4
5
6
<h1>git-whatchanged</h1>  <h2 id="_name">Name</h2> <div class="sectionbody">  <p>git-whatchanged - Show logs with differences each commit introduces</p>  </div>   <h2 id="_synopsis">Synopsis</h2> <div class="sectionbody"> <div class="verseblock"> <pre class="content" data-language="shell">git whatchanged &lt;option&gt;…​</pre> </div> </div>   <h2 id="_description">Description</h2> <div class="sectionbody">  <p>Shows commit logs and diff output each commit introduces.</p>   <p>New users are encouraged to use <a href="git-log">git-log[1]</a> instead. The <code>whatchanged</code> command is essentially the same as <a href="git-log">git-log[1]</a> but defaults to showing the raw format diff output and skipping merges.</p>   <p>The command is primarily kept for historical reasons; fingers of many people who learned Git long before <code>git log</code> was invented by reading the Linux kernel mailing list are trained to type it.</p>  </div>   <h2 id="_examples">Examples</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-whatchanged.txt-codegitwhatchanged-pv2612includescsidriversscsicode"> <code>git whatchanged -p v2.6.12.. include/scsi drivers/scsi</code> </dt> <dd> <p>Show as patches the commits since version <code>v2.6.12</code> that changed any file in the include/scsi or drivers/scsi subdirectories</p> </dd> <dt class="hdlist1" id="Documentation/git-whatchanged.txt-codegitwhatchanged--since2weeksago--gitkcode"> <code>git whatchanged --since="2 weeks ago" -- gitk</code> </dt> <dd> <p>Show the changes during the last two weeks to the file <code>gitk</code>. The "--" is necessary to avoid confusion with the <strong>branch</strong> named <code>gitk</code></p> </dd> </dl> </div> </div><div class="_attribution">
  <p class="_attribution-p">
    &copy; 2012&ndash;2024 Scott Chacon and others<br>Licensed under the MIT License.<br>
    <a href="https://git-scm.com/docs/git-whatchanged" class="_attribution-link">https://git-scm.com/docs/git-whatchanged</a>
  </p>
</div>