]> git.ipfire.org Git - thirdparty/git.git/commit
refspec: relocate apply_refspecs and related funtions
authorMeet Soni <meetsoni3017@gmail.com>
Tue, 4 Feb 2025 04:05:58 +0000 (09:35 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Feb 2025 17:51:42 +0000 (09:51 -0800)
commitd549b6c9ff44d3ccb32b9bfe1816d3cfb1d7052a
tree283108093dffa111ed78d80f3bc01ee1bb209233
parent7b24a170d2c36c83c3669d194af46a09ccdeec43
refspec: relocate apply_refspecs and related funtions

Move the functions `apply_refspecs()` and `apply_negative_refspecs()`
from `remote.c` to `refspec.c`. These functions focus on applying
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
remote.h