SF.net SVN: geany:[5090] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Tue Jul 6 13:54:49 UTC 2010
Revision: 5090
http://geany.svn.sourceforge.net/geany/?rev=5090&view=rev
Author: ntrel
Date: 2010-07-06 13:54:49 +0000 (Tue, 06 Jul 2010)
Log Message:
-----------
Fix Grep --exclude-dir example to not filter out the current
directory (oops).
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/geany.html
trunk/doc/geany.txt
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-07-05 12:03:27 UTC (rev 5089)
+++ trunk/ChangeLog 2010-07-06 13:54:49 UTC (rev 5090)
@@ -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:
Modified: trunk/doc/geany.html
===================================================================
--- trunk/doc/geany.html 2010-07-05 12:03:27 UTC (rev 5089)
+++ trunk/doc/geany.html 2010-07-06 13:54:49 UTC (rev 5090)
@@ -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 @@
<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 @@
<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 >= 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 >= 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 @@
<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>
Modified: trunk/doc/geany.txt
===================================================================
--- trunk/doc/geany.txt 2010-07-05 12:03:27 UTC (rev 5089)
+++ trunk/doc/geany.txt 2010-07-06 13:54:49 UTC (rev 5090)
@@ -1238,18 +1238,26 @@
```````````````````````````````````
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``.
+The --exclude argument only matches the file name part, not the path.
-Example: ``--exclude-dir=.* --exclude-dir=CVS``
-
Replace
^^^^^^^
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list