summaryrefslogtreecommitdiff
path: root/convert.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-02-22 20:17:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-02-24 17:33:21 (GMT)
commit61e2a70ff26f83f761fa36e0cc16996878d8dd59 (patch)
treeb1b73887d34402bb39b536c42b3332b413d01c03 /convert.c
parentdadacf10dc9e11046e2c8c49347174e71cef3fa3 (diff)
downloadgit-61e2a70ff26f83f761fa36e0cc16996878d8dd59.zip
git-61e2a70ff26f83f761fa36e0cc16996878d8dd59.tar.gz
git-61e2a70ff26f83f761fa36e0cc16996878d8dd59.tar.bz2
hex: add functions to parse hex object IDs in any algorithm
There are some places where we need to parse a hex object ID in any algorithm without knowing beforehand which algorithm is in use. An example is when parsing fast-import marks. Add a get_oid_hex_any to parse an object ID and return the algorithm it belongs to, and additionally add parse_oid_hex_any which is the equivalent change for parse_oid_hex. If the object is not parseable, we return GIT_HASH_UNKNOWN. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'convert.c')
0 files changed, 0 insertions, 0 deletions