diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-03-19 15:53:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-26 16:09:21 -0700 |
commit | 808d3d717e86be597aa94d4a26f82a0ba5a53c22 (patch) | |
tree | 028d2eed0ffc04635571e699e7e640e28c0ee2f3 /Documentation/git-add.txt | |
parent | b75cdfaa882a00f2274e74b21c1a9927d184ed29 (diff) | |
download | git-808d3d717e86be597aa94d4a26f82a0ba5a53c22.tar.gz |
git add: -u/-A now affects the entire working treejn/add-2.0-u-A-sans-pathspec
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.txt | 16 |
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:: |