sha1_file: convert index_path and index_fd to struct object_id
commitbcd29864737099ff78de3db8b1d518f2aea51bc9
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 15 Oct 2017 22:07:05 +0000 (15 22:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Oct 2017 02:05:51 +0000 (16 11:05 +0900)
treec3703cb4fa2800ed101ea606f98fc49c2279b2db
parent0155f710b856970dc1dc5261e740f135c67a7b1d
sha1_file: convert index_path and index_fd to struct object_id

Convert these two functions and the functions that underlie them to take
pointers to struct object_id.  This is a prerequisite to convert
resolve_gitlink_ref.  Fix a stray tab in the middle of the index_mem
call in index_pipe by converting it to a space.

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