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

[PATCH 0/2] fix error handling in checkout-index

From
Jeff King <peff@peff.net>
Date
Oct 27, 2020, 07:30 UTC
Message-ID
<20201027073000.GA3651896@coredump.intra.peff.net>

While working on another topic, I noticed that "git checkout-index -- path" does not propagate errors through its exit code. It has been that way for so long that I almost wondered if it is intentional, but I'm pretty sure it's not. A bit scary, though. :)

  [1/2]: checkout-index: drop error message from empty --stage=all
  [2/2]: checkout-index: propagate errors to exit code
 builtin/checkout-index.c        | 16 ++++++++++++++--
 t/t2004-checkout-cache-temp.sh  | 10 +++++++++-
 t/t2006-checkout-index-basic.sh | 11 +++++++++++
 3 files changed, 34 insertions(+), 3 deletions(-)
-Peff
Next: Jeff King
Message 1 of 5 in “fix error handling in checkout-index”
  1. 0/2 fix error handling in checkout-indexJeff King, Oct 27, 2020
  2. 1/2 checkout-index: drop error message from empty --stage=allJeff King, Oct 27, 2020
  3. 2/2 checkout-index: propagate errors to exit codeJeff King, Oct 27, 2020
  4. Junio C HamanoOct 27, 2020
  5. Jeff KingOct 27, 2020

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.