git-am: use printf instead of echo on user-supplied strings
[gitweb.git] / Documentation / git-add.txt
index a5051aad6bfdf748976430452206e40838c75ca6..38c72b87329720c630419768c9c68cbe718d7a15 100644 (file)
@@ -7,7 +7,7 @@ git-add - Add file contents to the changeset to be committed next
 
 SYNOPSIS
 --------
-'git-add' [-n] [-v] [-f] [--interactive] [--] <file>...
+'git-add' [-n] [-v] [-f] [--interactive | -i] [--] <file>...
 
 DESCRIPTION
 -----------
@@ -52,7 +52,7 @@ OPTIONS
 -f::
        Allow adding otherwise ignored files.
 
-\--interactive::
+-i, \--interactive::
        Add modified contents in the working tree interactively to
        the index.
 
@@ -62,6 +62,15 @@ OPTIONS
        for command-line options).
 
 
+Configuration
+-------------
+
+The optional configuration variable 'core.excludesfile' indicates a path to a
+file containing patterns of file names to exclude from git-add, similar to
+$GIT_DIR/info/exclude.  Patterns in the exclude file are used in addition to
+those in info/exclude.  See link:repository-layout.html[repository layout].
+
+
 EXAMPLES
 --------
 git-add Documentation/\\*.txt::