]> git.ipfire.org Git - thirdparty/git.git/commit
tree-walk.h: fix incorrect API comment
authorElijah Newren <newren@gmail.com>
Fri, 2 May 2025 19:19:11 +0000 (19:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 May 2025 19:44:04 +0000 (12:44 -0700)
commitf62977b93c89d5785ba92cb64c05850bee4a2c72
treef22d6fe7d571a2239c4bd4acd1624a47d27d6ffc
parentd50a5e8939abfc07c2ff97ae72e9330939b36ee0
tree-walk.h: fix incorrect API comment

When commit 50ddb089ff68 (tree-walk.c: remove the_repo from
get_tree_entry(), 2019-06-27) added an extra parameter to
get_tree_entry(), it did not fix the ordering comment about the meaning
of the parameters.  Rather than just changing "third"->"fourth" and
"fourth"->"fifth", give the paramemters meaningful names (or actually,
just take the existing names from the get_tree_entry() definition in the
tree-walk.c file) and while at it, tweak the rest of the description to
incorporate the other parameter names as well.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tree-walk.h