]> git.ipfire.org Git - thirdparty/git.git/commit
treewide: convert users of `whence` to the new source field
authorPatrick Steinhardt <ps@pks.im>
Wed, 24 Jun 2026 12:19:17 +0000 (14:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Jun 2026 17:12:35 +0000 (10:12 -0700)
commit4f48d2a241037fbc6bd4bd968ce77681d5b0e610
tree03501101b4a132f4f1e5f09351b5b2fc42e32efe
parent1bdb8c34f218b2267c1f1690fddf73f2b18ef777
treewide: convert users of `whence` to the new source field

The `whence` field has become redundant now that callers can learn about
the exact source an object has been looked up from via the `struct
object_info_source::source` field.

Adapt callers to use the new field. Note that all callsites already set
up the `info.sourcep` request pointer, so the conversion is rather
straight-forward.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/cat-file.c
builtin/index-pack.c
builtin/pack-objects.c
reachable.c