git-commit-vandalism/refs
brian m. carlson 4417df8c49 refs/files-backend: convert many internals to struct object_id
Convert many of the internals of the files backend to use struct
object_id.  Avoid converting public APIs (except one change to
refs/ref-cache.c) to limit the scope of the changes.

Convert one use of get_sha1_hex to parse_oid_hex, and rely on the fact
that a strbuf will be NUL-terminated and that parse_oid_hex will fail on
truncated input to avoid the need to check the length.

This is a requirement to convert parse_object later on.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-05-08 15:12:58 +09:00
..
files-backend.c refs/files-backend: convert many internals to struct object_id 2017-05-08 15:12:58 +09:00
iterator.c do_for_each_ref(): reimplement using reference iteration 2016-06-20 11:38:20 -07:00
ref-cache.c refs/files-backend: convert many internals to struct object_id 2017-05-08 15:12:58 +09:00
ref-cache.h refs/files-backend: convert many internals to struct object_id 2017-05-08 15:12:58 +09:00
refs-internal.h refs: convert struct ref_update to use struct object_id 2017-05-08 15:12:58 +09:00