Re: [PATCH v8 16/44] sequencer.c: use ref transactions for all ref updates
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- May 15, 2014, 21:53 UTC
- Message-ID
- <20140515215307.GO26471@google.com>
- In-Reply-To
- <1400174999-26786-17-git-send-email-sahlberg@google.com>
Ronnie Sahlberg wrote:
> --- a/sequencer.c > +++ b/sequencer.c > @@ -272,23 +272,31 @@ static int fast_forward_to(const unsigned char *to, const unsigned char *from,
[...]
> + error(_("HEAD: Could not fast-forward: %s\n"), err.buf);As with 'git commit', since err.buf already mentions that HEAD was the problematic ref I think it has enough information for the user to diagnose the problem and figure out what to do next.
error("%s", err.buf);