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

Possible bug or error in document?

From
KKKwonHyun Kim <kwonhyun.kim@gmail.com>
Date
Jul 31, 2024, 06:08 UTC
Message-ID
<CADLV-7+mQ0K6_-L_Pws9yOYfQ++b4NyH5+FXwbyHuXBiOALeYA@mail.gmail.com>
Hello there, I have a possible bug or possible error in document.
  When I do `git add --pathspec-from=.gitadd --ignore-errors` I can
the following error

``` $ git add --pathspec-from=.gitadd --ignore-errors fatal: pathspec 'chapter???.R' did not match any files ```

  I figured from what I read from the help, --ignore-errors means add
whatever possible(help included in the following)
--ignore-errors
           If some files could not be added because of errors indexing
them, do not abort the operation, but continue adding the others. The
command shall still exit with non-zero
           status. The configuration variable add.ignoreErrors can be
set to true to make this the default behaviour.
  So is it me possibly misunderstanding English, or it might be git
doing something wrong or document directing someone in the wrong
direction...
  I thought I might use this option(--pathsepc-from=) like using
.gitignore in the opposite way but it seems that I need to make my own
script to read line by line and do `git add`
  Thank you for reading.
KwH Kim
Next: Junio C Hamano
Message 1 of 2 in “Possible bug or error in document?”
  1. KwonHyun KimJul 31, 2024
  2. Junio C HamanoJul 31, 2024

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.