]> git.ipfire.org Git - thirdparty/git.git/commit
refspec: relocate refname_matches_negative_refspec_item
authorMeet Soni <meetsoni3017@gmail.com>
Tue, 4 Feb 2025 04:05:55 +0000 (09:35 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Feb 2025 17:51:41 +0000 (09:51 -0800)
commit230d022fe3ba67465e867ac1fa4da3bcf0d31630
tree26e55702e06508af081e7640c25209f1b1f47c2b
parente4f6ab008522c5ad386485720770b8d03b4fb880
refspec: relocate refname_matches_negative_refspec_item

Move the functions `refname_matches_negative_refspec_item()`,
`refspec_match()`, and `match_name_with_pattern()` from `remote.c` to
`refspec.c`. These functions focus on refspec matching, so placing them
in `refspec.c` aligns with the separation of concerns. Keep
refspec-related logic in `refspec.c` and remote-specific logic in
`remote.c` for better code organization.

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