Documentation: 'git add -A' can remove files
commit968d70723ae1e352bde2f7171d18484186838d9f
authorBjörn Gustavsson <bgustavsson@gmail.com>
Mon, 7 Dec 2009 08:20:09 +0000 (7 09:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Dec 2009 08:27:57 +0000 (7 00:27 -0800)
tree6dd2c5e50b914a342f9b2ab4ecf9b3b4c24d23e8
parentaa031314bf8189a15290d5bd0d85fa2a0307ceb7
Documentation: 'git add -A' can remove files

The current documentation fails to mention that 'git add -A/--all' can
remove files as well as add them, and it also does not say anything about
filepatterns (whether they are allowed, mandatory, or optional). It is
also not clear what the similarities and differences to the -u option are.

Update the intro paragraph (as suggested by Junio, with some minor edits)
to make it clear that 'git add' is able to delete and to also cover the -p
option.

Reword the description of -u to make it clearer (based on Björn
Steinbrink's suggestion).

Simplify the description of -A by saying "Like -u" and then describe the
differences (based on the suggestions by Björn Steinbrink and Junio).

Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-add.txt