summaryrefslogtreecommitdiff
path: root/color.h
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-10-31 14:49:56 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-01 10:35:39 +0900
commitc3bdc4e7795023863756cf6176c1ab32793459a1 (patch)
tree5494f784bb418e648755296a4598b0b69dbd7181 /color.h
parentnotes: move hex_to_bytes() to hex.c and export it (diff)
downloadtgif-c3bdc4e7795023863756cf6176c1ab32793459a1.tar.xz
http-push: use hex_to_bytes()
The path of a loose object contains its hash value encoded into two substrings of hexadecimal digits, separated by a slash. The current code copies the pieces into a temporary buffer to get rid of the slash and then uses get_oid_hex() to decode the hash value. Avoid the copy by using hex_to_bytes() directly on the substrings. That's shorter and easier. While at it correct the length of the second substring in a comment. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'color.h')
0 files changed, 0 insertions, 0 deletions