aboutsummaryrefslogtreecommitdiff
path: root/commit-graph.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-03-20 08:07:27 +0100
committerJunio C Hamano <gitster@pobox.com>2026-03-20 13:16:22 -0700
commit1382e54a9c9e5f98271a943af9c10299c6ba934b (patch)
tree9dfbf3c312c9adbfd83f1be687fdcacd82cc7dd7 /commit-graph.c
parent7f757675549755627d0c778296f0b13f331795be (diff)
downloadgit-1382e54a9c9e5f98271a943af9c10299c6ba934b.tar.xz
oidtree: modernize the code a bit
The "oidtree.c" subsystem is rather small and self-contained and tends to just work. It thus doesn't typically receive a lot of attention, which has as a consequence that it's coding style is somewhat dated nowadays. Modernize the style of this subsystem a bit: - Rename the `oidtree_iter()` function to `oidtree_each_cb()`. - Rename `struct oidtree_iter_data` to `struct oidtree_each_data` to match the renamed callback function type. - Rename parameters and variables to clarify their intent. - Add comments that explain what some of the functions do. - Adapt the return value of `oidtree_contains()` to be a boolean. This prepares for some changes to the subsystem that'll happen in the next commit. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions