summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-03-07 15:14:01 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-03-07 15:14:02 -0800
commit053a6b18074e12876d60da952d8a668631b21a64 (patch)
treed211cc6a40f5b4c916c34a7d187a7c90e398dd37 /Documentation
parentMerge branch 'jc/push-2.0-default-to-simple' (diff)
parentgit add: -u/-A now affects the entire working tree (diff)
downloadtgif-053a6b18074e12876d60da952d8a668631b21a64.tar.xz
Merge branch 'jn/add-2.0-u-A-sans-pathspec'
"git add -u" and "git add -A" without any pathspec is a tree-wide operation now, even when they are run in a subdirectory of the working tree.
Diffstat (limited to 'Documentation')
-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 48754cbc67..c7f83fd696 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::