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

Re: [PATCH/RFC] rerere: error out on autoupdate failure

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 3, 2014, 17:41 UTC
Message-ID
<xmqqppc0iqb7.fsf@gitster.dls.corp.google.com>
In-Reply-To
<xmqqy4qoiqmu.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
> Instead of crafting a new message, why not just stop passing IGNORE_ERRORS
> and have add_file_to_cache() report the failure?  That is:
>
> 	if (add_file_to_cache(item->string, 0))
>         	return -1;
Err, that should be exit(128) to mimic die().
> That way, the user will get more useful diagnosis because there are
> different reasons why an "add" may fail and we give different error
> messages to them.
Previous: Junio C HamanoNext: Jonathan Nieder
Message 3 of 4 in “rerere: error out on autoupdate failure”
  1. rerere: error out on autoupdate failureJonathan Nieder, Dec 3, 2014
  2. Junio C HamanoDec 3, 2014
  3. Junio C HamanoDec 3, 2014
  4. rerere: error out on autoupdate failureJonathan Nieder, Dec 3, 2014

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.