summaryrefslogtreecommitdiff
path: root/builtin/notes.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-05-30 17:30:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-02 00:36:06 (GMT)
commit89c149f55b93e052e46e46ebc4d7e76b0b25a90c (patch)
tree61d05476172a750b8bce7cb4bdfd57cb4ffc247f /builtin/notes.c
parent5dcc969e79ebb1e9c1996ffd972bb76467d3bc84 (diff)
downloadgit-89c149f55b93e052e46e46ebc4d7e76b0b25a90c.zip
git-89c149f55b93e052e46e46ebc4d7e76b0b25a90c.tar.gz
git-89c149f55b93e052e46e46ebc4d7e76b0b25a90c.tar.bz2
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 <sandals@crustytoothpaste.net> Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/notes.c')
0 files changed, 0 insertions, 0 deletions