summaryrefslogtreecommitdiff
path: root/commit-graph.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2024-11-18 04:55:11 -0500
committerJunio C Hamano <gitster@pobox.com>2024-11-18 21:48:47 +0900
commitb2a95dfd63e812dc4abe5750371f2f0596d2d063 (patch)
treeea5ccfca3c45c38541886b87b5c097f81ce50bad /commit-graph.c
parent2911f9ed1eccf92c4a98c50c3a88abb2c03a8126 (diff)
object-file: move empty_tree struct into find_cached_object()
The fake empty_tree struct is a static global, but the only code that looks at it is find_cached_object(). The struct itself is a little odd, with an invalid "oid" field that is handled specially by that function. Since it's really just an implementation detail, let's move it to a static within the function. That future-proofs against other code trying to use it and seeing the weird oid value. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions