git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] git-add: -s flag: documentation added

From
Olaf Klischat <olaf.klischat@gmail.com>
Date
Oct 1, 2012, 07:15 UTC
Message-ID
<1349075700-26334-3-git-send-email-olaf.klischat@gmail.com>
In-Reply-To
<1349075700-26334-1-git-send-email-olaf.klischat@gmail.com>
Signed-off-by: Olaf Klischat <olaf.klischat@gmail.com>
---
 Documentation/git-add.txt |   15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index fd9e36b..a5a1cd1 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -38,10 +38,12 @@ files have changes that are staged for the next commit.
 
 The `git add` command will not add ignored files by default.  If any
 ignored files were explicitly specified on the command line, `git add`
-will fail with a list of ignored files.  Ignored files reached by
-directory recursion or filename globbing performed by Git (quote your
-globs before the shell) will be silently ignored.  The 'git add' command can
-be used to add ignored files with the `-f` (force) option.
+will fail with a list of ignored files unless the `-s` (silent-ignore)
+option was given.  Ignored files reached by directory recursion or
+filename globbing performed by Git (quote your globs before the shell)
+will always be silently ignored.  The 'git add' command can be used to
+add ignored files with the `-f` (force) option (which is mutually
+exclusive with `-s`).
 
 Please see linkgit:git-commit[1] for alternative ways to add content to a
 commit.
@@ -69,6 +71,11 @@ OPTIONS
 --force::
 	Allow adding otherwise ignored files.
 
+-s::
+--silent-ignore::
+	Don't fail if ignored files were specified explicitly; ignore them
+	silently and continue.
+
 -i::
 --interactive::
 	Add modified contents in the working tree interactively to
-- 
1.7.10.4
Previous: Matthieu MoyNext: Junio C Hamano
Message 5 of 6 in “git-add: -s flag (silently ignore files)”
  1. 0/2 git-add: -s flag (silently ignore files)Olaf Klischat, Oct 1, 2012
  2. 1/2 git-add: -s flag added (silently ignore files)Olaf Klischat, Oct 1, 2012
  3. Junio C HamanoOct 1, 2012
  4. Matthieu MoyOct 1, 2012
  5. 2/2 git-add: -s flag: documentation addedOlaf Klischat, Oct 1, 2012
  6. Junio C HamanoOct 1, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.