From: brian m. carlson Date: Tue, 30 May 2017 17:30:38 +0000 (-0700) Subject: notes: convert internal parts to struct object_id X-Git-Tag: v2.14.0-rc0~86^2~31 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/89c149f55b93e052e46e46ebc4d7e76b0b25a90c?ds=sidebyside;hp=89c149f55b93e052e46e46ebc4d7e76b0b25a90c notes: convert internal parts to struct object_id Convert several portions of the internals of the code to struct object_id. Introduce two macros to denote the different constants in the code: KEY_INDEX for the last byte of the object ID, and FANOUT_PATH_SEPARATORS for the number of possible path separators (on Unix, "/"). While these constants are both 19 (one less than the number of bytes in the hash), distinguish them to make the code more understandable, and define them logically based on their intended purpose. Signed-off-by: brian m. carlson Signed-off-by: Brandon Williams Signed-off-by: Junio C Hamano ---