diff options
author | Jeff King <peff@peff.net> | 2024-10-25 03:03:42 -0400 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2024-10-25 17:35:46 -0400 |
commit | 0af861e0c8d7b7c6135bfc688be13370ac2c9468 (patch) | |
tree | 860562879ac792faf3149a7b269da3971d1e23e6 /commit.c | |
parent | 6b2fc22050227e102af692af28c98925c18c6cc1 (diff) |
http-walker: use object_id instead of bare hash
We long ago switched most code to using object_id structs instead of
bare "unsigned char *" hashes. This gives us more type safety from the
compiler, and generally makes it easier to understand what we expect in
each parameter.
But the dumb-http code has lagged behind. And indeed, the whole "walker"
subsystem interface has the same problem, though http-walker is the only
user left.
So let's update the walker interface to pass object_id structs (which we
already have anyway at all call sites!), and likewise use those within
the http-walker methods that it calls.
This cleans up the dumb-http code a bit, but will also let us fix a few
more commonly used helper functions.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions