diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-05-30 10:30:38 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-02 09:36:06 +0900 |
commit | 89c149f55b93e052e46e46ebc4d7e76b0b25a90c (patch) | |
tree | 61d05476172a750b8bce7cb4bdfd57cb4ffc247f /builtin/rebase--helper.c | |
parent | notes: convert internal structures to struct object_id (diff) | |
download | tgif-89c149f55b93e052e46e46ebc4d7e76b0b25a90c.tar.xz |
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/rebase--helper.c')
0 files changed, 0 insertions, 0 deletions