summaryrefslogtreecommitdiffstats
path: root/git-diff-tree.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-26 23:14:59 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-26 23:14:59 -0700
commitfb1fdf1f6a77bd1efab252589905f85f760611ab (patch)
tree6e3a8bf5784f4709a0dbf3b12e1a8f1b5a43dd26 /git-diff-tree.html
parent7526f0aeb1f0a4fa2a4a6fc213db28d5a1b8d418 (diff)
downloadgit-htmldocs-fb1fdf1f6a77bd1efab252589905f85f760611ab.tar.gz
Autogenerated HTML docs for v2.14.1-459-g238e4
Diffstat (limited to 'git-diff-tree.html')
-rw-r--r--git-diff-tree.html73
1 files changed, 72 insertions, 1 deletions
diff --git a/git-diff-tree.html b/git-diff-tree.html
index e79aefc41..32ef42b53 100644
--- a/git-diff-tree.html
+++ b/git-diff-tree.html
@@ -1119,6 +1119,74 @@ explained for the configuration variable <code>core.quotePath</code> (see
</p>
</dd>
<dt class="hdlist1">
+--color-moved[=&lt;mode&gt;]
+</dt>
+<dd>
+<p>
+ Moved lines of code are colored differently.
+ The &lt;mode&gt; defaults to <em>no</em> if the option is not given
+ and to <em>zebra</em> if the option with no mode is given.
+ The mode must be one of:
+</p>
+<div class="openblock">
+<div class="content">
+<div class="dlist"><dl>
+<dt class="hdlist1">
+no
+</dt>
+<dd>
+<p>
+ Moved lines are not highlighted.
+</p>
+</dd>
+<dt class="hdlist1">
+default
+</dt>
+<dd>
+<p>
+ Is a synonym for <code>zebra</code>. This may change to a more sensible mode
+ in the future.
+</p>
+</dd>
+<dt class="hdlist1">
+plain
+</dt>
+<dd>
+<p>
+ Any line that is added in one location and was removed
+ in another location will be colored with <em>color.diff.newMoved</em>.
+ Similarly <em>color.diff.oldMoved</em> will be used for removed lines
+ that are added somewhere else in the diff. This mode picks up any
+ moved line, but it is not very useful in a review to determine
+ if a block of code was moved without permutation.
+</p>
+</dd>
+<dt class="hdlist1">
+zebra
+</dt>
+<dd>
+<p>
+ Blocks of moved text of at least 20 alphanumeric characters
+ are detected greedily. The detected blocks are
+ painted using either the <em>color.diff.{old,new}Moved</em> color or
+ <em>color.diff.{old,new}MovedAlternative</em>. The change between
+ the two colors indicates that a new block was detected.
+</p>
+</dd>
+<dt class="hdlist1">
+dimmed_zebra
+</dt>
+<dd>
+<p>
+ Similar to <em>zebra</em>, but additional dimming of uninteresting parts
+ of moved code is performed. The bordering lines of two adjacent
+ blocks are considered interesting, the rest is uninteresting.
+</p>
+</dd>
+</dl></div>
+</div></div>
+</dd>
+<dt class="hdlist1">
--word-diff[=&lt;mode&gt;]
</dt>
<dd>
@@ -2514,7 +2582,10 @@ The title was &gt;&gt;t4119: test autocomputing -p&lt;n&gt; for traditional diff
<li>
<p>
%(trailers): display the trailers of the body as interpreted by
- <a href="git-interpret-trailers.html">git-interpret-trailers(1)</a>
+ <a href="git-interpret-trailers.html">git-interpret-trailers(1)</a>. If the <code>:only</code> option is given,
+ omit non-trailer lines from the trailer block. If the <code>:unfold</code>
+ option is given, behave as if interpret-trailer&#8217;s <code>--unfold</code> option
+ was given. E.g., <code>%(trailers:only:unfold)</code> to do both.
</p>
</li>
</ul></div>