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

Re: git add -u nonexistent-file

From
Chris Packham <judge.packham@gmail.com>
Date
Feb 9, 2010, 22:17 UTC
Message-ID
<a038bef51002091417o1048c098x898517596115ed90@mail.gmail.com>
In-Reply-To
<7v7hqm2hs7.fsf@alter.siamese.dyndns.org>
On Tue, Feb 9, 2010 at 4:58 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
>
> It won't be entirely trivial to do so efficiently but it shouldn't be a
> rocket surgery.
>
> Something like this (untested of course)?
>
Passes my new test and all the rest in t2200-add-update.sh and t3700-add.sh.
Hows this for a commit message:
  git add -u: give an error if pathspec unmatched
  If a pathspec is supplied to 'git add -u' and no matching path is
  matched, fail with an approriate error message and exit code.
Previous: Junio C HamanoNext: Chris Packham
Message 7 of 13 in “git add -u nonexistent-file”
  1. SZEDER GáborFeb 8, 2010
  2. Chris PackhamFeb 8, 2010
  3. Jeff KingFeb 9, 2010
  4. Chris PackhamFeb 9, 2010
  5. test for add with non-existent pathspecChris Packham, Feb 9, 2010
  6. Junio C HamanoFeb 9, 2010
  7. Chris PackhamFeb 9, 2010
  8. Chris PackhamFeb 9, 2010
  9. 1/3 test for add with non-existent pathspecChris Packham, Feb 9, 2010
  10. 2/3 git add -u: give an error if pathspec unmatchedChris Packham, Feb 9, 2010
  11. 3/3 t2200-add-update.sh: change expected fail to successChris Packham, Feb 9, 2010
  12. Junio C HamanoFeb 9, 2010
  13. Jeff KingFeb 10, 2010

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.