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

Re: [PATCH] git-commit: exit non-zero if we fail to commit the index

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 22, 2008, 23:42 UTC
Message-ID
<7vfxwpqvfg.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<47964370.8010300@nrlssc.navy.mil>
Brandon Casey <casey@nrlssc.navy.mil> writes:
Show 20 quoted lines
> ---
>
>
> Junio C Hamano wrote:
>> Brandon Casey <casey@nrlssc.navy.mil> writes:
>> 
>>>>  We would need to tell the user that the index is not where
>>>> it is when we detect the error, though.
>>> The new index we are trying to rename will be deleted.
>>> Are you saying we should 
>>>   warn the user that the index is now out of sync?
>> 
>> Yeah, something like that.  But I think that once this happens
>> there is no easy and sane recovery path for the user, as the
>> most likely cause of the failure there would be the user running
>> out of quota, so "git reset HEAD" which may be the way to
>> recover from that failure would not have enough room to create a
>> new index file anyway.
>
> If you're interested, here's a patch.

Looks Ok from a quick glance. I am mired at day job this week so it may take a while for me to come up with a commit log message though.

Previous: Brandon CaseyNext: Brandon Casey
Message 6 of 9 in “git-commit: exit non-zero if we fail to commit the index”
  1. git-commit: exit non-zero if we fail to commit the indexBrandon Casey, Jan 17, 2008
  2. Junio C HamanoJan 17, 2008
  3. Brandon CaseyJan 17, 2008
  4. Junio C HamanoJan 17, 2008
  5. git-commit: exit non-zero if we fail to commit the indexBrandon Casey, Jan 22, 2008
  6. Junio C HamanoJan 22, 2008
  7. git-commit: exit non-zero if we fail to commit the indexBrandon Casey, Jan 23, 2008
  8. Junio C HamanoJan 23, 2008
  9. Brandon CaseyJan 23, 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.