summaryrefslogtreecommitdiff
path: root/Documentation/git-add.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-19 22:53:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-26 23:09:21 (GMT)
commit808d3d717e86be597aa94d4a26f82a0ba5a53c22 (patch)
tree028d2eed0ffc04635571e699e7e640e28c0ee2f3 /Documentation/git-add.txt
parentb75cdfaa882a00f2274e74b21c1a9927d184ed29 (diff)
downloadgit-808d3d717e86be597aa94d4a26f82a0ba5a53c22.zip
git-808d3d717e86be597aa94d4a26f82a0ba5a53c22.tar.gz
git-808d3d717e86be597aa94d4a26f82a0ba5a53c22.tar.bz2
git add: -u/-A now affects the entire working tree
As promised in 0fa2eb530fb7 (add: warn when -u or -A is used without pathspec, 2013-01-28), in Git 2.0, "git add -u/-A" that is run without pathspec in a subdirectory updates all updated paths in the entire working tree, not just the current directory and its subdirectories. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-add.txt')
-rw-r--r--Documentation/git-add.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index 48754cb..c7f83fd 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -104,10 +104,10 @@ apply to the index. See EDITING PATCHES below.
<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
-and its subdirectories. This default will change in a future version
-of Git, hence the form without <pathspec> should not be used.
+If no <pathspec> is given when `-u` option is used, all
+tracked files in the entire working tree are updated (old versions
+of Git used to limit the update to the current directory and its
+subdirectories).
-A::
--all::
@@ -117,10 +117,10 @@ of Git, hence the form without <pathspec> should not be used.
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.
+If no <pathspec> is given when `-A` option is used, all
+files in the entire working tree are updated (old versions
+of Git used to limit the update to the current directory and its
+subdirectories).
--no-all::
--ignore-removal::