summaryrefslogtreecommitdiff
path: root/Documentation/git-add.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-04-22 18:11:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-22 18:11:45 (GMT)
commit561954bfa1c1a1c5a76ca59001da331c73c5c141 (patch)
tree359128415d7d23c48467dfc6db5461977d826338 /Documentation/git-add.txt
parentde0d774d46b3731ea22567efc4aaf1fc8f5ac919 (diff)
parentccc663bc24a3925b818df0ce97a5ba47e221f383 (diff)
downloadgit-561954bfa1c1a1c5a76ca59001da331c73c5c141.zip
git-561954bfa1c1a1c5a76ca59001da331c73c5c141.tar.gz
git-561954bfa1c1a1c5a76ca59001da331c73c5c141.tar.bz2
Merge branch 'jc/add-2.0-delete-default' (early part)
Preparatory steps to make "git add <pathspec>" take notice of removed paths that match <pathspec> by default in Git 2.0. * 'jc/add-2.0-delete-default' (early part): git add: rephrase the "removal will cease to be ignored" warning git add: rework the logic to warn "git add <pathspec>..." default change git add: start preparing for "git add <pathspec>..." to default to "-A" builtin/add.c: simplify boolean variables
Diffstat (limited to 'Documentation/git-add.txt')
-rw-r--r--Documentation/git-add.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index b0944e5..5c501a2 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -9,7 +9,7 @@ SYNOPSIS
--------
[verse]
'git add' [-n] [-v] [--force | -f] [--interactive | -i] [--patch | -p]
- [--edit | -e] [--all | [--update | -u]] [--intent-to-add | -N]
+ [--edit | -e] [--[no-]all | [--update | -u]] [--intent-to-add | -N]
[--refresh] [--ignore-errors] [--ignore-missing] [--]
[<pathspec>...]
@@ -121,6 +121,18 @@ If no <pathspec> is given, the current version of Git defaults to
and its subdirectories. This default will change in a future version
of Git, hence the form without <pathspec> should not be used.
+--no-all::
+ Update the index by adding new files that are unknown to the
+ index and files modified in the working tree, but ignore
+ files that have been removed from the working tree. This
+ option is a no-op when no <pathspec> is used.
++
+This option is primarily to help the current users of Git, whose
+"git add <pathspec>..." ignores removed files. In future versions
+of Git, "git add <pathspec>..." will be a synonym to "git add -A
+<pathspec>..." and "git add --no-all <pathspec>..." will behave like
+today's "git add <pathspec>...", ignoring removed files.
+
-N::
--intent-to-add::
Record only the fact that the path will be added later. An entry