On Tue, Jun 10, 2014 at 02:40:30PM -0700, Junio C Hamano wrote:
> Jeff King writes:
>
> > Note that we may be fixing a bug here. The existing code
> > does:
> >
> > if (same_encoding(to, from))
> > reencode_string(buf, to, from);
> >
> > That probably should have been "!same_encoding".
>
Jeff King writes:
> Note that we may be fixing a bug here. The existing code
> does:
>
> if (same_encoding(to, from))
> reencode_string(buf, to, from);
>
> That probably should have been "!same_encoding".
>
> Signed-off-by: Jeff King
> ---
> I didn't actually test for the bug, so it's
This simplifies the code, as logmsg_reencode handles the
reencoding for us in a single call. It also means we learn
logmsg_reencode's trick of pulling the buffer from disk when
commit->buffer is NULL (we currently just silently return!).
It is doubtful this matters in practice, though, as
sequencer
3 matches
Mail list logo