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

Re: Are these bugs?

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 27, 2008, 23:47 UTC
Message-ID
<7v1w0akolk.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<76718490808271636i4de8f385pdaeb1672f06a00d7@mail.gmail.com>
"Jay Soffian" <jaysoffian@gmail.com> writes:
> I understand why "git reset" failed, but at best the error message is
> confusing to a new user.
This is in "patches welcome" category.
> 2. "git add --ignore-errors" doesn't work with ignored files:
>
> $ git add --ignore-errors foo bar

The option, IIRC, is more about filesystem errors (failure to read), not about safety against user errors (specifying otherwise ignored paths).

If you are automating something that uses xargs to drive addition to the index, and the feeder to xargs knows better than .gitignore files, then probably your script should be using '-f' unconditionally. So I do not see why you would think #2 could be a bug.

Previous: Jay SoffianNext: Stephan Beyer
Message 2 of 6 in “Are these bugs?”
  1. Jay SoffianAug 27, 2008
  2. Junio C HamanoAug 27, 2008
  3. Stephan BeyerAug 28, 2008
  4. Junio C HamanoAug 28, 2008
  5. Benny HalevyAug 28, 2008
  6. Jay SoffianAug 28, 2008

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.