Fix Grep --exclude-dir example to not filter out the current

directory (oops).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5090 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2010-07-06 13:54:49 +00:00
parent 2265fe283a
commit 135d7fd1c5
3 changed files with 38 additions and 16 deletions

View File

@ -1,3 +1,10 @@
2010-07-06 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* doc/geany.txt, doc/geany.html:
Fix Grep --exclude-dir example to not filter out the current
directory (oops).
2010-07-05 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/sidebar.c:

View File

@ -6,7 +6,7 @@
<meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" />
<title>Geany</title>
<meta name="authors" content="Enrico Tröger Nick Treleaven Frank Lanitz" />
<meta name="date" content="2010-07-01" />
<meta name="date" content="2010-07-02" />
<style type="text/css">
/*
@ -139,7 +139,7 @@ Stylesheet for Geany's documentation based on a version of John Gabriele.
<br />Nick Treleaven
<br />Frank Lanitz</td></tr>
<tr><th class="docinfo-name">Date:</th>
<td>2010-07-01</td></tr>
<td>2010-07-02</td></tr>
<tr><th class="docinfo-name">Version:</th>
<td>0.20</td></tr>
</tbody>
@ -1605,13 +1605,20 @@ Grep implementations.</p>
<div class="section">
<h4><a class="toc-backref" href="#id65" id="filtering-out-version-control-files" name="filtering-out-version-control-files">Filtering out version control files</a></h4>
<p>When using the <em>Recurse in subfolders</em> option with a directory that's
under version control, you can set the <em>Extra options</em> field to use
grep's <tt class="docutils literal"><span class="pre">--exclude</span></tt> flag to filter out filenames.</p>
under version control, you can set the <em>Extra options</em> field to filter
out version control files.</p>
<p>If you have GNU Grep &gt;= 2.5.2 you can use the <tt class="docutils literal"><span class="pre">--exclude-dir</span></tt>
argument to filter out CVS and hidden directories like <tt class="docutils literal"><span class="pre">.svn</span></tt>.</p>
<p>Example: <tt class="docutils literal"><span class="pre">--exclude-dir=.?*</span> <span class="pre">--exclude-dir=CVS</span></tt></p>
<div class="note">
<p class="first admonition-title">Note</p>
<p class="last">The <tt class="docutils literal"><span class="pre">.?*</span></tt> glob pattern matches all directories beginning with a
dot except the current directory <tt class="docutils literal"><span class="pre">'.'</span></tt>.</p>
</div>
<p>If you have an older Grep, you can try using the <tt class="docutils literal"><span class="pre">--exclude</span></tt> flag
to filter out filenames.</p>
<p>SVN Example: <tt class="docutils literal"><span class="pre">--exclude=*.svn-base</span></tt></p>
<p>The --exclude argument only matches the file name part, not the path. If
you have GNU Grep &gt;= 2.5.2 you can use the <tt class="docutils literal"><span class="pre">--exclude-dir</span></tt> argument to
filter out CVS and hidden directories like <tt class="docutils literal"><span class="pre">.svn</span></tt>.</p>
<p>Example: <tt class="docutils literal"><span class="pre">--exclude-dir=.*</span> <span class="pre">--exclude-dir=CVS</span></tt></p>
<p>The --exclude argument only matches the file name part, not the path.</p>
</div>
</div>
<div class="section">
@ -6133,7 +6140,7 @@ USE OR PERFORMANCE OF THIS SOFTWARE.</p>
<div class="footer">
<hr class="footer" />
<a class="reference" href="geany.txt">View document source</a>.
Generated on: 2010-07-02 11:59 UTC.
Generated on: 2010-07-06 13:50 UTC.
Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
</div>

View File

@ -1238,16 +1238,24 @@ Filtering out version control files
```````````````````````````````````
When using the *Recurse in subfolders* option with a directory that's
under version control, you can set the *Extra options* field to use
grep's ``--exclude`` flag to filter out filenames.
under version control, you can set the *Extra options* field to filter
out version control files.
If you have GNU Grep >= 2.5.2 you can use the ``--exclude-dir``
argument to filter out CVS and hidden directories like ``.svn``.
Example: ``--exclude-dir=.?* --exclude-dir=CVS``
.. note::
The ``.?*`` glob pattern matches all directories beginning with a
dot except the current directory ``'.'``.
If you have an older Grep, you can try using the ``--exclude`` flag
to filter out filenames.
SVN Example: ``--exclude=*.svn-base``
The --exclude argument only matches the file name part, not the path. If
you have GNU Grep >= 2.5.2 you can use the ``--exclude-dir`` argument to
filter out CVS and hidden directories like ``.svn``.
Example: ``--exclude-dir=.* --exclude-dir=CVS``
The --exclude argument only matches the file name part, not the path.
Replace