aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-add.txt
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-02-21 15:33:49 -0800
committerJunio C Hamano <junkio@cox.net>2006-02-21 17:33:43 -0800
commit60ace8790f3cfba4fdc16e71e23c4f9c44ce9b44 (patch)
tree2a482e0dd128e37b5639d6b0a9ce63f0eec7ed8d /Documentation/git-add.txt
parent39ba7d54649b35c943b026b54bff40cfa0153f3e (diff)
downloadgit-60ace8790f3cfba4fdc16e71e23c4f9c44ce9b44.tar.gz
git-60ace8790f3cfba4fdc16e71e23c4f9c44ce9b44.tar.xz
git-add: Add support for --, documentation, and test.
This adds support to git-add to allow the common -- to separate command-line options and file names. It adds documentation and a new git-add test case as well. [jc: this should apply to 1.2.X maintenance series, so I reworked git-ls-files --error-unmatch test. ] Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-add.txt')
-rw-r--r--Documentation/git-add.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index 89e461402..7e293834d 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -7,7 +7,7 @@ git-add - Add files to the index file.
SYNOPSIS
--------
-'git-add' [-n] [-v] <file>...
+'git-add' [-n] [-v] [--] <file>...
DESCRIPTION
-----------
@@ -26,6 +26,11 @@ OPTIONS
-v::
Be verbose.
+--::
+ This option can be used to separate command-line options from
+ the list of files, (useful when filenames might be mistaken
+ for command-line options).
+
DISCUSSION
----------