[PATCH 2/3] Documentation/git-add.txt: describe --exclude option

2015-03-15 Thread Alexander Kuleshov
Signed-off-by: Alexander Kuleshov kuleshovm...@gmail.com
---
 Documentation/git-add.txt | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index f2eb907..4bc156a 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -9,7 +9,7 @@ SYNOPSIS
 
 [verse]
 'git add' [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | 
-i] [--patch | -p]
- [--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | -u]]
+ [--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | -u]] 
[--exclude=pattern]
  [--intent-to-add | -N] [--refresh] [--ignore-errors] 
[--ignore-missing]
  [--] [pathspec...]
 
@@ -164,6 +164,10 @@ for git add --no-all pathspec..., i.e. ignored removed 
files.
be ignored, no matter if they are already present in the work
tree or not.
 
+--exclude=pattern::
+   Do not add files to the index in addition which are found in
+   the .gitignore.
+
 \--::
This option can be used to separate command-line options from
the list of files, (useful when filenames might be mistaken
-- 
2.3.3.472.g20ceeac

--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/3] Documentation/git-add.txt: describe --exclude option

2015-03-15 Thread Eric Sunshine
On Sun, Mar 15, 2015 at 9:50 AM, Alexander Kuleshov
kuleshovm...@gmail.com wrote:
 Signed-off-by: Alexander Kuleshov kuleshovm...@gmail.com
 ---
 diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
 index f2eb907..4bc156a 100644
 --- a/Documentation/git-add.txt
 +++ b/Documentation/git-add.txt
 @@ -9,7 +9,7 @@ SYNOPSIS
  
  [verse]
  'git add' [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | 
 -i] [--patch | -p]
 - [--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | -u]]
 + [--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | 
 -u]] [--exclude=pattern]
   [--intent-to-add | -N] [--refresh] [--ignore-errors] 
 [--ignore-missing]
   [--] [pathspec...]

 @@ -164,6 +164,10 @@ for git add --no-all pathspec..., i.e. ignored 
 removed files.
 be ignored, no matter if they are already present in the work
 tree or not.

 +--exclude=pattern::
 +   Do not add files to the index in addition which are found in
 +   the .gitignore.

This is difficult to understand. Perhaps something like:

Also ignore files matching pattern, a .gitignore-like
pattern.

This option can be specified multiple times, can't it? The
documentation should say so.

 +
  \--::
 This option can be used to separate command-line options from
 the list of files, (useful when filenames might be mistaken
 --
 2.3.3.472.g20ceeac
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html