Re: [PATCH GSoC v4 3/9] fetch-object-info: pass arguments directly instead of a struct

Karthik Nayak <[email protected]> Thu, 6 Aug 2026 04:21:06 -0700
Newsgroups org.kernel.vger.git
Message-ID <CAOLa=ZT_Zv82cWdhK6rJiAQm05WjdPwfG0p7nLO9pZ-hiX4g3Q@mail.gmail.com>
Pablo Sabater <[email protected]> writes:

> struct object_info_args groups three pointers that already live in the
> transport and are given to fetch_object_info().
> Grouping them into a struct reduces the number of parameters, but it
> suggests that the three belong together, when they are unrelated and end
> up being accessed as args->* independently.
>

This reads much better and explains why we make the change.

> Drop the struct and pass those parameters directly to
> fetch_object_info() and send_object_info_request(). This should have no
> change in behavior.

[snip]

The changes too look in order.
signature.asc (application/pgp-signature, 690 B)
-----BEGIN PGP SIGNATURE-----

iQHKBAEBCgA0FiEEV85Mf2N1cQ/LZcYGPtWfJI5GjH8FAmp0biAWHGthcnRoaWsu
MTg4QGdtYWlsLmNvbQAKCRA+1Z8kjkaMfyjsC/9tiW9vRYq3f4R0agmspch8YthL
d5ybXgwLt8WP0cU7yGN6pq45tUfs7H8NUFiv3XQmSFoI6pgGEabDYJSGHj94Nvjo
7yUwB+Y5u2fvYt6daQPrn8Uv506/bhr7YRej8RmiksYScE0we/vJ/52tG2JBLk+W
yu/cVp5fst9mB7AV4KzQa8QEF1vObXPgqPVpMdkhKEjc4773oaEfO6suzy0vZpjs
4weMzhGbCnV+RKz6tAVC/w2mAwp/26H34EbjY4BstGzqnabYtHDrNIc30t9ZptES
vYoaRveX8qvOcXNG3/XCIjuz3TWNEfslkF5aWto/b7fFpZsMuhPBBTUYiT7FeysA
lTUe8RW3/W4a77igKx/Ybv6t7qrDWrYmSkTI3EK8aU2mQsPo0GBJU1+uqUCIESWI
rqaSqN3EIOwoaEhg2VIvIxD6ig9dSGZ2IXGJ76QM2xjDcNHa2KRSiRlPAg0lJ3Pm
ikDDO2xjZFNDiOZjfVUTwGwwPzHU5Z8W9Yjqe5I=
=BN0S
-----END PGP SIGNATURE-----