]> git.ipfire.org Git - thirdparty/git.git/commit - notes.c
get_oid_hex_segment(): don't pad the rest of `oid`
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 26 Aug 2017 08:28:10 +0000 (10:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 26 Aug 2017 16:21:01 +0000 (09:21 -0700)
commitd49852d6f89bfde3cb20b6ca5866f67f6c04a894
treec488fd091a47ae5ae76e98d3641e7cd235c06fc3
parent4ebef533d75a197f660b38d615489ad8a233bba1
get_oid_hex_segment(): don't pad the rest of `oid`

Remove the feature of `get_oid_hex_segment()` that it pads the rest of
the `oid` argument with zeros. Instead, do this at the caller who
needs it.

This makes the functionality of this function more coherent and
removes the need for its `oid_len` argument.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c