]> git.ipfire.org Git - thirdparty/git.git/commit - list-objects.c
list-objects: drop process_gitlink() function
authorJeff King <peff@peff.net>
Tue, 13 Dec 2022 11:12:09 +0000 (06:12 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Dec 2022 13:16:22 +0000 (22:16 +0900)
commit00271485d4acefda7ff054a1db5d5a39735e28b9
tree4cae038d73aed4ac46a9beab4384347825c676a1
parentc1166ca0e23d60629e0e7babd4eb4be64f578286
list-objects: drop process_gitlink() function

Our object graph traversal code has a process_gitlink() function which
we call when we see a gitlink entry. The function does nothing; it was
added in the early days of gitlinks by 6e2f441bd4 (Teach git
list-objects logic to not follow gitlinks, 2007-04-13).

The comment above the function talks about some things we _could_ do.
But in the intervening 15 years, nobody has touched the function, and
the submodule code usually makes its own decisions about when and how to
examine the links. At the generic traversal layer, we can't assume that
the pointed-to commit is available.

Let's drop this placeholder that isn't really helping anything. This
silences some -Wunused-parameter warnings, and also gets rid of a crufty
use of "const unsigned char *" to pass a raw hash value.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
list-objects.c