]> Kevux Git Server - rit/commit
remote: rename function omit_name_by_refspec
authorMeet Soni <meetsoni3017@gmail.com>
Tue, 4 Feb 2025 04:05:54 +0000 (09:35 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Feb 2025 17:51:41 +0000 (09:51 -0800)
commite4f6ab008522c5ad386485720770b8d03b4fb880
tree41fb6d79a214b25bd4e7a086de4f186869c2e13e
parent5f8f7081f7761acdf83d0a4c6819fe3d724f01d7
remote: rename function omit_name_by_refspec

Rename the function `omit_name_by_refspec()` to
`refname_matches_negative_refspec_item()` to provide clearer intent.
The previous function name was vague and did not accurately describe its
purpose. By using `refname_matches_negative_refspec_item`, make the
function's purpose more intuitive, clarifying that it checks if a
reference name matches any negative refspec.

Rename function parameters for consistency with existing naming
conventions. Use `refname` instead of `name` to align with terminology
in `refs.h`.

Remove the redundant doc comment since the function name is now
self-explanatory.

Signed-off-by: Meet Soni <meetsoni3017@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c
remote.c
remote.h