]> git.ipfire.org Git - thirdparty/git.git/commit
packfile.c: fix a typo in `each_file_in_pack_dir_fn()`'s declaration
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 17 Nov 2023 13:15:15 +0000 (13:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 19 Nov 2023 23:15:50 +0000 (08:15 +0900)
commit50f1abcff6681ae06334b3deef39b20aec261c15
treed4b1622313335499563ec18ce51e8dc09f1a3c48
parent61a22ddaf0626111193a17ac12f366bd6d167dff
packfile.c: fix a typo in `each_file_in_pack_dir_fn()`'s declaration

One parameter is called `file_pach`. On the face of it, this looks as if
it was supposed to talk about a `path` instead of a `pach`.

However, looking at the way this callback is called, it gets fed the
`d_name` from a directory entry, which provides just the file name, not
the full path. Therefore, let's fix this by calling the parameter
`file_name` instead.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
packfile.h