]> git.ipfire.org Git - thirdparty/git.git/commit - hex.c
hex: introduce parse_oid_hex
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 20 Feb 2017 00:10:13 +0000 (00:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Feb 2017 09:11:26 +0000 (01:11 -0800)
commit605f430efb23ce14ca11750368149acd38b8f1e4
treeb9e9593022ca7c0258f0a940eab301b4a0d3bbdc
parent5588dbffbd61e4906e453808c6ad32f792fea521
hex: introduce parse_oid_hex

Introduce a function, parse_oid_hex, which parses a hexadecimal object
ID and if successful, sets a pointer to just beyond the last character.
This allows for simpler, more robust parsing without needing to
hard-code integer values throughout the codebase.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
hex.c