From: Brandon Casey <casey@nrlssc.navy.mil>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] git-commit: exit non-zero if we fail to commit the index
Date: Wed, 16 Jan 2008 19:49:36 -0600 [thread overview]
Message-ID: <478EB430.1040604@nrlssc.navy.mil> (raw)
In-Reply-To: <7vir1tmey8.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
> Brandon Casey <casey@nrlssc.navy.mil> writes:
>
>> Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
>> ---
>>
>>
>> Shouldn't we be doing this? I think if quiet is set,
>> then a failed rename will go undetected since we
>> won't enter print_summary to have lookup_commit fail.
>
> But then it's a bit too late, isn't it? We already have
> successfully made the commit and updated the HEAD to point at
> it.
Ok, so the commit has been made, but the index (since the rename
failed), is out of sync?
> 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?
Or prevent the deletion of the updated index?
or just ignore this case which I now see as very unlikely to occur?
-brandon
next prev parent reply other threads:[~2008-01-17 1:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-17 0:07 [PATCH] git-commit: exit non-zero if we fail to commit the index Brandon Casey
2008-01-17 1:13 ` Junio C Hamano
2008-01-17 1:49 ` Brandon Casey [this message]
2008-01-17 2:11 ` Junio C Hamano
2008-01-22 19:26 ` Brandon Casey
2008-01-22 23:42 ` Junio C Hamano
2008-01-23 17:21 ` Brandon Casey
2008-01-23 20:01 ` Junio C Hamano
2008-01-23 20:47 ` Brandon Casey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=478EB430.1040604@nrlssc.navy.mil \
--to=casey@nrlssc.navy.mil \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).