summaryrefslogtreecommitdiffstats
path: root/gitglossary.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2011-02-28 06:41:28 +0000
committerJunio C Hamano <junio@kernel.org>2011-02-28 06:41:28 +0000
commit63c2bc983d6e2487dae4da9f2118a48d403b5890 (patch)
tree11fa99d64c828a4a8c5132ffb831deb96e8a2f46 /gitglossary.html
parent36a4dbcbf885a8894517a812f69e3d8c31540f84 (diff)
downloadgit-htmldocs-63c2bc983d6e2487dae4da9f2118a48d403b5890.tar.gz
Autogenerated HTML docs for v1.7.4.1-140-g89781
Diffstat (limited to 'gitglossary.html')
-rw-r--r--gitglossary.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/gitglossary.html b/gitglossary.html
index 613696853..335b015f6 100644
--- a/gitglossary.html
+++ b/gitglossary.html
@@ -912,6 +912,45 @@ This commit is referred to as a "merge commit", or sometimes just a
</p>
</dd>
<dt class="hdlist1">
+<a id="def_pathspec"></a>pathspec
+</dt>
+<dd>
+<p>
+ Pattern used to specify paths.
+</p>
+<div class="paragraph"><p>Pathspecs are used on the command line of "git ls-files", "git
+ls-tree", "git grep", "git checkout", and many other commands to
+limit the scope of operations to some subset of the tree or
+worktree. See the documentation of each command for whether
+paths are relative to the current directory or toplevel. The
+pathspec syntax is as follows:</p></div>
+<div class="ulist"><ul>
+<li>
+<p>
+any path matches itself
+</p>
+</li>
+<li>
+<p>
+the pathspec up to the last slash represents a
+ directory prefix. The scope of that pathspec is
+ limited to that subtree.
+</p>
+</li>
+<li>
+<p>
+the rest of the pathspec is a pattern for the remainder
+ of the pathname. Paths relative to the directory
+ prefix will be matched against that pattern using fnmatch(3);
+ in particular, <em>*</em> and <em>?</em> <em>can</em> match directory separators.
+</p>
+<div class="paragraph"><p>For example, Documentation/*.jpg will match all .jpg files
+in the Documentation subtree,
+including Documentation/chapter_1/figure_1.jpg.</p></div>
+</li>
+</ul></div>
+</dd>
+<dt class="hdlist1">
<a id="def_parent"></a>parent
</dt>
<dd>