Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Autogenerated HTML docs for v1.8.2-rc3-16-gce432

  • Loading branch information...
commit f66c463acc5e9564f9a8634aef4c19c0c0b34872 1 parent 6cfebd0
@gitster authored
Showing with 24 additions and 21 deletions.
  1. +12 −11 git-add.html
  2. +12 −10 git-add.txt
View
23 git-add.html
@@ -888,12 +888,9 @@ <h2 id="_options">OPTIONS</h2>
</dt>
<dd>
<p>
- Only match &lt;pathspec&gt; against already tracked files in
- the index rather than the working tree. That means that it
- will never stage new files, but that it will stage modified
- new contents of tracked files and that it will remove files
- from the index if the corresponding files in the working tree
- have been removed.
+ Update the index just where it already has an entry matching
+ &lt;pathspec&gt;. This removes as well as modifies index entries to
+ match the working tree, but adds no new files.
</p>
<div class="paragraph"><p>If no &lt;pathspec&gt; is given, the current version of Git defaults to
"."; in other words, update all tracked files in the current directory
@@ -908,11 +905,15 @@ <h2 id="_options">OPTIONS</h2>
</dt>
<dd>
<p>
- Like <code>-u</code>, but match &lt;pathspec&gt; against files in the
- working tree in addition to the index. That means that it
- will find new files as well as staging modified content and
- removing files that are no longer in the working tree.
+ Update the index not only where the working tree has a file
+ matching &lt;pathspec&gt; but also where the index already has an
+ entry. This adds, modifies, and removes index entries to
+ match the working tree.
</p>
+<div class="paragraph"><p>If no &lt;pathspec&gt; is given, the current version of Git defaults to
+"."; in other words, update all files in the current directory
+and its subdirectories. This default will change in a future version
+of Git, hence the form without &lt;pathspec&gt; should not be used.</p></div>
</dd>
<dt class="hdlist1">
-N
@@ -1290,7 +1291,7 @@ <h2 id="_git">GIT</h2>
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2013-02-15 15:22:25 PST
+Last updated 2013-03-11 13:54:06 PDT
</div>
</div>
</body>
View
22 git-add.txt
@@ -100,12 +100,9 @@ apply to the index. See EDITING PATCHES below.
-u::
--update::
- Only match <pathspec> against already tracked files in
- the index rather than the working tree. That means that it
- will never stage new files, but that it will stage modified
- new contents of tracked files and that it will remove files
- from the index if the corresponding files in the working tree
- have been removed.
+ Update the index just where it already has an entry matching
+ <pathspec>. This removes as well as modifies index entries to
+ match the working tree, but adds no new files.
+
If no <pathspec> is given, the current version of Git defaults to
"."; in other words, update all tracked files in the current directory
@@ -114,10 +111,15 @@ of Git, hence the form without <pathspec> should not be used.
-A::
--all::
- Like `-u`, but match <pathspec> against files in the
- working tree in addition to the index. That means that it
- will find new files as well as staging modified content and
- removing files that are no longer in the working tree.
+ Update the index not only where the working tree has a file
+ matching <pathspec> but also where the index already has an
+ entry. This adds, modifies, and removes index entries to
+ match the working tree.
++
+If no <pathspec> is given, the current version of Git defaults to
+"."; in other words, update all files in the current directory
+and its subdirectories. This default will change in a future version
+of Git, hence the form without <pathspec> should not be used.
-N::
--intent-to-add::
Please sign in to comment.
Something went wrong with that request. Please try again.