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

Re: [PATCH 1/2] git-add: -s flag added (silently ignore files)

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Oct 1, 2012, 18:04 UTC
Message-ID
<vpqehlif4qd.fsf@grenoble-inp.fr>
In-Reply-To
<7vipaucbur.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 11 quoted lines
>>  static struct option builtin_add_options[] = {
>>  	OPT__DRY_RUN(&show_only, N_("dry run")),
>> @@ -329,6 +329,7 @@ static struct option builtin_add_options[] = {
>>  	OPT_BOOLEAN( 0 , "refresh", &refresh_only, N_("don't add, only refresh the index")),
>>  	OPT_BOOLEAN( 0 , "ignore-errors", &ignore_add_errors, N_("just skip files which cannot be added because of errors")),
>>  	OPT_BOOLEAN( 0 , "ignore-missing", &ignore_missing, N_("check if - even missing - files are ignored in dry run")),
>> +	OPT_BOOLEAN('s', "silent-ignores", &silent_ignores, N_("don't fail when ignored files are specified on the command line (ignore them silently)")),
>
> I'd prefer not to see a new option whose worth hasn't been proven in
> the field to squat on any short-and-sweet single letter option
> name and would suggest replacing that 's' with 0, at least for now.

Another option would be a -k (--keep-going) that would ignore the files, but not silently. "git mv" has such an option already.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Junio C HamanoNext: Olaf Klischat
Message 4 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.