summaryrefslogtreecommitdiffstats
path: root/git-diff-tree.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-02-06 23:20:47 -0800
committerJunio C Hamano <gitster@pobox.com>2019-02-06 23:20:47 -0800
commit23168ef89678fc52e01173bbc7fdaa760f21d02a (patch)
tree8425bac71f938dfce77a3c2928b2c936b03789c9 /git-diff-tree.html
parent2567b326fac6961a6fc6075ad2f22a744252f2f3 (diff)
downloadgit-htmldocs-23168ef89678fc52e01173bbc7fdaa760f21d02a.tar.gz
Autogenerated HTML docs for v2.21.0-rc0
Diffstat (limited to 'git-diff-tree.html')
-rw-r--r--git-diff-tree.html51
1 files changed, 2 insertions, 49 deletions
diff --git a/git-diff-tree.html b/git-diff-tree.html
index 533a23a6d..b263b6a82 100644
--- a/git-diff-tree.html
+++ b/git-diff-tree.html
@@ -1961,10 +1961,7 @@ matches "<code>fooasdfbar</code>" and "<code>foo/bar/baz/asdf</code>" but not "<
<dd>
<p>
If provided, the results are limited to a subset of files
- matching one of these prefix strings.
- i.e., file matches <code>/^&lt;pattern1&gt;|&lt;pattern2&gt;|.../</code>
- Note that this parameter does not provide any wildcard or regexp
- features.
+ matching one of the provided pathspecs.
</p>
</dd>
<dt class="hdlist1">
@@ -2820,50 +2817,6 @@ $ git log -2 --pretty=%h 4da45bef</code></pre>
</div>
</div>
<div class="sect1">
-<h2 id="_limiting_output">LIMITING OUTPUT</h2>
-<div class="sectionbody">
-<div class="paragraph"><p>If you&#8217;re only interested in differences in a subset of files, for
-example some architecture-specific files, you might do:</p></div>
-<div class="literalblock">
-<div class="content">
-<pre><code>git diff-tree -r &lt;tree-ish&gt; &lt;tree-ish&gt; arch/ia64 include/asm-ia64</code></pre>
-</div></div>
-<div class="paragraph"><p>and it will only show you what changed in those two directories.</p></div>
-<div class="paragraph"><p>Or if you are searching for what changed in just <code>kernel/sched.c</code>, just do</p></div>
-<div class="literalblock">
-<div class="content">
-<pre><code>git diff-tree -r &lt;tree-ish&gt; &lt;tree-ish&gt; kernel/sched.c</code></pre>
-</div></div>
-<div class="paragraph"><p>and it will ignore all differences to other files.</p></div>
-<div class="paragraph"><p>The pattern is always the prefix, and is matched exactly. There are no
-wildcards. Even stricter, it has to match a complete path component.
-I.e. "foo" does not pick up <code>foobar.h</code>. "foo" does match <code>foo/bar.h</code>
-so it can be used to name subdirectories.</p></div>
-<div class="paragraph"><p>An example of normal usage is:</p></div>
-<div class="literalblock">
-<div class="content">
-<pre><code>torvalds@ppc970:~/git&gt; git diff-tree --abbrev 5319e4
-:100664 100664 ac348b... a01513... git-fsck-objects.c</code></pre>
-</div></div>
-<div class="paragraph"><p>which tells you that the last commit changed just one file (it&#8217;s from
-this one:</p></div>
-<div class="listingblock">
-<div class="content">
-<pre><code>commit 3c6f7ca19ad4043e9e72fa94106f352897e651a8
-tree 5319e4d609cdd282069cc4dce33c1db559539b03
-parent b4e628ea30d5ab3606119d2ea5caeab141d38df7
-author Linus Torvalds &lt;torvalds@ppc970.osdl.org&gt; Sat Apr 9 12:02:30 2005
-committer Linus Torvalds &lt;torvalds@ppc970.osdl.org&gt; Sat Apr 9 12:02:30 2005
-
-Make "git-fsck-objects" print out all the root commits it finds.
-
-Once I do the reference tracking, I'll also make it print out all the
-HEAD commits it finds, which is even more interesting.</code></pre>
-</div></div>
-<div class="paragraph"><p>in case you care).</p></div>
-</div>
-</div>
-<div class="sect1">
<h2 id="_raw_output_format">Raw output format</h2>
<div class="sectionbody">
<div class="paragraph"><p>The raw output format from "git-diff-index", "git-diff-tree",
@@ -3440,7 +3393,7 @@ the pathname, but if that is <code>NUL</code>, the record will show two paths.</
<div id="footer">
<div id="footer-text">
Last updated
- 2018-05-23 00:06:29 PDT
+ 2019-02-06 23:17:45 PST
</div>
</div>
</body>