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

Re: [RESEND PATCH] bisect: use oid_to_hex_r() instead of memcpy()+oid_to_hex()

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 2, 2020, 20:03 UTC
Message-ID
<xmqqzh7crf29.fsf@gitster.c.googlers.com>
In-Reply-To
<632682d5-e343-c069-f4b4-0451072d54d2@web.de>
René Scharfe <l.s.r@web.de> writes:
Show 8 quoted lines
> Write the hexadecimal object ID directly into the destination buffer
> using oid_to_hex_r() instead of writing it into a static buffer first
> using oid_to_hex() and then copying it from there using memcpy().
> This is shorter, simpler and a bit more efficient.
>
> Reviewed-by: brian m. carlson <sandals@crustytoothpaste.net>
> Signed-off-by: René Scharfe <l.s.r@web.de>
> ---
Thanks.
Previous: René Scharfe
Message 2 of 2 in “bisect: use oid_to_hex_r() instead of memcpy()+oid_to_hex()”
  1. bisect: use oid_to_hex_r() instead of memcpy()+oid_to_hex()René Scharfe, Aug 2, 2020
  2. Junio C HamanoAug 2, 2020

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.