]> git.ipfire.org Git - thirdparty/git.git/commit
refspec: relocate matching related functions
authorMeet Soni <meetsoni3017@gmail.com>
Tue, 4 Feb 2025 04:05:57 +0000 (09:35 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Feb 2025 17:51:41 +0000 (09:51 -0800)
commit7b24a170d2c36c83c3669d194af46a09ccdeec43
treee2bafbb58fa1d1f8890cafe781df34ee7a9acbfc
parentbe0905fed1cdc9a2269f19569c518f00d54d2dbe
refspec: relocate matching related functions

Move the functions `refspec_find_match()`, `refspec_find_all_matches()`
and `refspec_find_negative_match()` from `remote.c` to `refspec.c`.
These functions focus on matching refspecs, so centralizing them in
`refspec.c` improves code organization by keeping refspec-related logic
in one place.

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