summaryrefslogtreecommitdiffstats
path: root/git-grep.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 /git-grep.html
parent2a4bcbc355496c8d83b1b9f8892c4cbe8f584158 (diff)
downloadgit-htmldocs-c14e6ad9a230ad90c84b7f620d87fbe49a2d0342.tar.gz
Autogenerated HTML docs for v2.2.0-rc0
Diffstat (limited to 'git-grep.html')
-rw-r--r--git-grep.html84
1 files changed, 41 insertions, 43 deletions
diff --git a/git-grep.html b/git-grep.html
index 980986ede..cc38df569 100644
--- a/git-grep.html
+++ b/git-grep.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>git-grep(1)</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++) {
@@ -860,8 +858,8 @@ grep.fullName
</dt>
<dd>
<p>
- Also search in ignored files by not honoring the <tt>.gitignore</tt>
- mechanism. Only useful with <tt>--untracked</tt>.
+ Also search in ignored files by not honoring the <code>.gitignore</code>
+ mechanism. Only useful with <code>--untracked</code>.
</p>
</dd>
<dt class="hdlist1">
@@ -869,9 +867,9 @@ grep.fullName
</dt>
<dd>
<p>
- Do not pay attention to ignored files specified via the <tt>.gitignore</tt>
+ Do not pay attention to ignored files specified via the <code>.gitignore</code>
mechanism. Only useful when searching files in the current directory
- with <tt>--no-index</tt>.
+ with <code>--no-index</code>.
</p>
</dd>
<dt class="hdlist1">
@@ -967,9 +965,9 @@ grep.fullName
<dd>
<p>
By default, the command shows the filename for each
- match. <tt>-h</tt> option is used to suppress this output.
- <tt>-H</tt> is there for completeness and does not do anything
- except it overrides <tt>-h</tt> given earlier on the command
+ match. <code>-h</code> option is used to suppress this output.
+ <code>-H</code> is there for completeness and does not do anything
+ except it overrides <code>-h</code> given earlier on the command
line.
</p>
</dd>
@@ -1056,8 +1054,8 @@ grep.fullName
<p>
Instead of showing every matched line, show only the
names of files that contain (or do not contain) matches.
- For better compatibility with <em>git diff</em>, <tt>--name-only</tt> is a
- synonym for <tt>--files-with-matches</tt>.
+ For better compatibility with <em>git diff</em>, <code>--name-only</code> is a
+ synonym for <code>--files-with-matches</code>.
</p>
</dd>
<dt class="hdlist1">
@@ -1114,7 +1112,7 @@ grep.fullName
<p>
Turn off match highlighting, even when the configuration file
gives the default to color output.
- Same as <tt>--color=never</tt>.
+ Same as <code>--color=never</code>.
</p>
</dd>
<dt class="hdlist1">
@@ -1161,7 +1159,7 @@ grep.fullName
<dd>
<p>
Show &lt;num&gt; leading and trailing lines, and place a line
- containing <tt>--</tt> between contiguous groups of matches.
+ containing <code>--</code> between contiguous groups of matches.
</p>
</dd>
<dt class="hdlist1">
@@ -1173,7 +1171,7 @@ grep.fullName
<dd>
<p>
Show &lt;num&gt; trailing lines, and place a line containing
- <tt>--</tt> between contiguous groups of matches.
+ <code>--</code> between contiguous groups of matches.
</p>
</dd>
<dt class="hdlist1">
@@ -1185,7 +1183,7 @@ grep.fullName
<dd>
<p>
Show &lt;num&gt; leading lines, and place a line containing
- <tt>--</tt> between contiguous groups of matches.
+ <code>--</code> between contiguous groups of matches.
</p>
</dd>
<dt class="hdlist1">
@@ -1216,7 +1214,7 @@ grep.fullName
<dd>
<p>
The next parameter is the pattern. This option has to be
- used for patterns starting with <tt>-</tt> and should be used in
+ used for patterns starting with <code>-</code> and should be used in
scripts passing user input to grep. Multiple patterns are
combined by <em>or</em>.
</p>
@@ -1236,8 +1234,8 @@ grep.fullName
<dd>
<p>
Specify how multiple patterns are combined using Boolean
- expressions. <tt>--or</tt> is the default operator. <tt>--and</tt> has
- higher precedence than <tt>--or</tt>. <tt>-e</tt> has to be used for all
+ expressions. <code>--or</code> is the default operator. <code>--and</code> has
+ higher precedence than <code>--or</code>. <code>-e</code> has to be used for all
patterns.
</p>
</dd>
@@ -1246,7 +1244,7 @@ grep.fullName
</dt>
<dd>
<p>
- When giving multiple pattern expressions combined with <tt>--or</tt>,
+ When giving multiple pattern expressions combined with <code>--or</code>,
this flag is specified to limit the match to files that
have lines to match all of them.
</p>
@@ -1298,29 +1296,29 @@ grep.fullName
<div class="sectionbody">
<div class="dlist"><dl>
<dt class="hdlist1">
-<tt>git grep 'time_t' -- '*.[ch]'</tt>
+<code>git grep 'time_t' -- '*.[ch]'</code>
</dt>
<dd>
<p>
- Looks for <tt>time_t</tt> in all tracked .c and .h files in the working
+ Looks for <code>time_t</code> in all tracked .c and .h files in the working
directory and its subdirectories.
</p>
</dd>
<dt class="hdlist1">
-<tt>git grep -e '#define' --and \( -e MAX_PATH -e PATH_MAX \)</tt>
+<code>git grep -e '#define' --and \( -e MAX_PATH -e PATH_MAX \)</code>
</dt>
<dd>
<p>
- Looks for a line that has <tt>#define</tt> and either <tt>MAX_PATH</tt> or
- <tt>PATH_MAX</tt>.
+ Looks for a line that has <code>#define</code> and either <code>MAX_PATH</code> or
+ <code>PATH_MAX</code>.
</p>
</dd>
<dt class="hdlist1">
-<tt>git grep --all-match -e NODE -e Unexpected</tt>
+<code>git grep --all-match -e NODE -e Unexpected</code>
</dt>
<dd>
<p>
- Looks for a line that has <tt>NODE</tt> or <tt>Unexpected</tt> in
+ Looks for a line that has <code>NODE</code> or <code>Unexpected</code> in
files that have lines that match both.
</p>
</dd>