summaryrefslogtreecommitdiffstats
path: root/gitdiffcore.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-10-31 13:25:53 -0700
committerJunio C Hamano <gitster@pobox.com>2014-10-31 13:25:53 -0700
commitc14e6ad9a230ad90c84b7f620d87fbe49a2d0342 (patch)
tree120346dc383e3d1c4219fe8c533eb22cb6af2b55 /gitdiffcore.html
parent2a4bcbc355496c8d83b1b9f8892c4cbe8f584158 (diff)
downloadgit-htmldocs-c14e6ad9a230ad90c84b7f620d87fbe49a2d0342.tar.gz
Autogenerated HTML docs for v2.2.0-rc0
Diffstat (limited to 'gitdiffcore.html')
-rw-r--r--gitdiffcore.html80
1 files changed, 39 insertions, 41 deletions
diff --git a/gitdiffcore.html b/gitdiffcore.html
index f4dbc5b00..798bf5779 100644
--- a/gitdiffcore.html
+++ b/gitdiffcore.html
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
-<meta name="generator" content="AsciiDoc 8.6.6" />
+<meta name="generator" content="AsciiDoc 8.6.9" />
<title>gitdiffcore(7)</title>
<style type="text/css">
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
@@ -87,10 +87,16 @@ ul, ol, li > p {
ul > li { color: #aaa; }
ul > li > * { color: black; }
-pre {
+.monospaced, code, pre {
+ font-family: "Courier New", Courier, monospace;
+ font-size: inherit;
+ color: navy;
padding: 0;
margin: 0;
}
+pre {
+ white-space: pre-wrap;
+}
#author {
color: #527bbd;
@@ -219,7 +225,7 @@ div.exampleblock > div.content {
}
div.imageblock div.content { padding-left: 0; }
-span.image img { border-style: none; }
+span.image img { border-style: none; vertical-align: text-bottom; }
a.image:visited { color: white; }
dl {
@@ -349,7 +355,7 @@ div.colist td img {
margin-bottom: 0.1em;
}
-div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
+div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
margin-top: 0;
margin-bottom: 0;
}
@@ -407,18 +413,14 @@ span.underline { text-decoration: underline; }
span.overline { text-decoration: overline; }
span.line-through { text-decoration: line-through; }
+div.unbreakable { page-break-inside: avoid; }
+
/*
* xhtml11 specific
*
* */
-tt {
- font-family: monospace;
- font-size: inherit;
- color: navy;
-}
-
div.tableblock {
margin-top: 1.0em;
margin-bottom: 1.5em;
@@ -452,12 +454,6 @@ div.tableblock > table[frame="vsides"] {
*
* */
-.monospaced {
- font-family: monospace;
- font-size: inherit;
- color: navy;
-}
-
table.tableblock {
margin-top: 1.0em;
margin-bottom: 1.5em;
@@ -537,6 +533,8 @@ body.manpage div.sectionbody {
@media print {
body.manpage div#toc { display: none; }
}
+
+
</style>
<script type="text/javascript">
/*<![CDATA[*/
@@ -581,7 +579,7 @@ toc: function (toclevels) {
function tocEntries(el, toclevels) {
var result = new Array;
- var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
+ var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');
// Function that scans the DOM tree for header elements (the DOM2
// nodeIterator API would be a better technique but not supported by all
// browsers).
@@ -610,7 +608,7 @@ toc: function (toclevels) {
var i;
for (i = 0; i < toc.childNodes.length; i++) {
var entry = toc.childNodes[i];
- if (entry.nodeName == 'div'
+ if (entry.nodeName.toLowerCase() == 'div'
&& entry.getAttribute("class")
&& entry.getAttribute("class").match(/^toclevel/))
tocEntriesToRemove.push(entry);
@@ -656,7 +654,7 @@ footnotes: function () {
var entriesToRemove = [];
for (i = 0; i < noteholder.childNodes.length; i++) {
var entry = noteholder.childNodes[i];
- if (entry.nodeName == 'div' && entry.getAttribute("class") == "footnote")
+ if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
entriesToRemove.push(entry);
}
for (i = 0; i < entriesToRemove.length; i++) {
@@ -800,9 +798,9 @@ the filepairs outside the specified sets of pathnames. E.g. If the
input set of filepairs included:</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>:100644 100644 bcd1234... 0123456... M junkfile</tt></pre>
+<pre><code>:100644 100644 bcd1234... 0123456... M junkfile</code></pre>
</div></div>
-<div class="paragraph"><p>but the command invocation was <tt>git diff-files myfile</tt>, then the
+<div class="paragraph"><p>but the command invocation was <code>git diff-files myfile</code>, then the
junkfile entry would be removed from the list because only "myfile"
is under consideration.</p></div>
<div class="paragraph"><p>The result of comparison is passed from these commands to what is
@@ -810,10 +808,10 @@ internally called "diffcore", in a format similar to what is output
when the -p option is not used. E.g.</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>in-place edit :100644 100644 bcd1234... 0123456... M file0
+<pre><code>in-place edit :100644 100644 bcd1234... 0123456... M file0
create :000000 100644 0000000... 1234567... A file4
delete :100644 000000 1234567... 0000000... D file5
-unmerged :000000 000000 0000000... 0000000... U file6</tt></pre>
+unmerged :000000 000000 0000000... 0000000... U file6</code></pre>
</div></div>
<div class="paragraph"><p>The diffcore mechanism is fed a list of such comparison results
(each of which is called "filepair", although at this point each
@@ -865,14 +863,14 @@ break such filepair into two filepairs that represent delete and
create. E.g. If the input contained this filepair:</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>:100644 100644 bcd1234... 0123456... M file0</tt></pre>
+<pre><code>:100644 100644 bcd1234... 0123456... M file0</code></pre>
</div></div>
<div class="paragraph"><p>and if it detects that the file "file0" is completely rewritten,
it changes it to:</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>:100644 000000 bcd1234... 0000000... D file0
-:000000 100644 0000000... 0123456... A file0</tt></pre>
+<pre><code>:100644 000000 bcd1234... 0000000... D file0
+:000000 100644 0000000... 0123456... A file0</code></pre>
</div></div>
<div class="paragraph"><p>For the purpose of breaking a filepair, diffcore-break examines
the extent of changes between the contents of the files before
@@ -897,15 +895,15 @@ controlled by the -M option (to detect renames) and the -C option
input contained these filepairs:</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>:100644 000000 0123456... 0000000... D fileX
-:000000 100644 0000000... 0123456... A file0</tt></pre>
+<pre><code>:100644 000000 0123456... 0000000... D fileX
+:000000 100644 0000000... 0123456... A file0</code></pre>
</div></div>
<div class="paragraph"><p>and the contents of the deleted file fileX is similar enough to
the contents of the created file file0, then rename detection
merges these filepairs and creates:</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>:100644 100644 0123456... 0123456... R100 fileX file0</tt></pre>
+<pre><code>:100644 100644 0123456... 0123456... R100 fileX file0</code></pre>
</div></div>
<div class="paragraph"><p>When the "-C" option is used, the original contents of modified files,
and deleted files (and also unmodified files, if the
@@ -915,16 +913,16 @@ these filepairs, that talk about a modified file fileY and a newly
created file file0:</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>:100644 100644 0123456... 1234567... M fileY
-:000000 100644 0000000... bcd3456... A file0</tt></pre>
+<pre><code>:100644 100644 0123456... 1234567... M fileY
+:000000 100644 0000000... bcd3456... A file0</code></pre>
</div></div>
<div class="paragraph"><p>the original contents of fileY and the resulting contents of
file0 are compared, and if they are similar enough, they are
changed to:</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>:100644 100644 0123456... 1234567... M fileY
-:100644 100644 0123456... bcd3456... C100 fileY file0</tt></pre>
+<pre><code>:100644 100644 0123456... 1234567... M fileY
+:100644 100644 0123456... bcd3456... C100 fileY file0</code></pre>
</div></div>
<div class="paragraph"><p>In both rename and copy detection, the same "extent of changes"
algorithm used in diffcore-break is used to determine if two
@@ -932,11 +930,11 @@ files are "similar enough", and can be customized to use
a similarity score different from the default of 50% by giving a
number after the "-M" or "-C" option (e.g. "-M8" to tell it to use
8/10 = 80%).</p></div>
-<div class="paragraph"><p>Note. When the "-C" option is used with <tt>--find-copies-harder</tt>
+<div class="paragraph"><p>Note. When the "-C" option is used with <code>--find-copies-harder</code>
option, <em>git diff-&#42;</em> commands feed unmodified filepairs to
diffcore mechanism as well as modified ones. This lets the copy
detector consider unmodified files as copy source candidates at
-the expense of making it slower. Without <tt>--find-copies-harder</tt>,
+the expense of making it slower. Without <code>--find-copies-harder</code>,
<em>git diff-&#42;</em> commands can detect copies only if the file that was
copied happened to have been modified in the same changeset.</p></div>
</div>
@@ -999,9 +997,9 @@ specify different ways these strings are sought.</p></div>
have different number of occurrences of the specified block of text.
By definition, it will not detect in-file moves. Also, when a
changeset moves a file wholesale without affecting the interesting
-string, diffcore-rename kicks in as usual, and <tt>-S</tt> omits the filepair
+string, diffcore-rename kicks in as usual, and <code>-S</code> omits the filepair
(since the number of occurrences of that string didn&#8217;t change in that
-rename-detected filepair). When used with <tt>--pickaxe-regex</tt>, treat
+rename-detected filepair). When used with <code>--pickaxe-regex</code>, treat
the &lt;block of text&gt; as an extended POSIX regular expression to match,
instead of a literal string.</p></div>
<div class="paragraph"><p>"-G&lt;regular expression&gt;" (mnemonic: grep) detects filepairs whose
@@ -1010,9 +1008,9 @@ regular expression. This means that it will detect in-file (or what
rename-detection considers the same file) moves, which is noise. The
implementation runs diff twice and greps, and this can be quite
expensive.</p></div>
-<div class="paragraph"><p>When <tt>-S</tt> or <tt>-G</tt> are used without <tt>--pickaxe-all</tt>, only filepairs
+<div class="paragraph"><p>When <code>-S</code> or <code>-G</code> are used without <code>--pickaxe-all</code>, only filepairs
that match their respective criterion are kept in the output. When
-<tt>--pickaxe-all</tt> is used, if even one filepair matches their respective
+<code>--pickaxe-all</code> is used, if even one filepair matches their respective
criterion in a changeset, the entire changeset is kept. This behavior
is designed to make reviewing changes in the context of the whole
changeset easier.</p></div>
@@ -1032,12 +1030,12 @@ filepairs that do not match any glob pattern are output last.</p></div>
would look like this:</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>README
+<pre><code>README
Makefile
Documentation
*.h
*.c
-t</tt></pre>
+t</code></pre>
</div></div>
</div>
</div>