]> git.ipfire.org Git - thirdparty/git.git/commit
remote: rename query_refspecs functions
authorMeet Soni <meetsoni3017@gmail.com>
Tue, 4 Feb 2025 04:05:56 +0000 (09:35 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Feb 2025 17:51:41 +0000 (09:51 -0800)
commitbe0905fed1cdc9a2269f19569c518f00d54d2dbe
tree2d47f9613180e8faa08797bb82cdab9f508fdaa6
parent230d022fe3ba67465e867ac1fa4da3bcf0d31630
remote: rename query_refspecs functions

Rename functions related to handling refspecs in preparation for their
move from `remote.c` to `refspec.c`. Update their names to better
reflect their intent:

    - `query_refspecs()` -> `refspec_find_match()` for clarity, as it
      finds a single matching refspec.

    - `query_refspecs_multiple()` -> `refspec_find_all_matches()` to
      better reflect that it collects all matching refspecs instead of
      returning just the first match.

    - `query_matches_negative_refspec()` ->
      `refspec_find_negative_match()` for consistency with the
      updated naming convention, even though this static function
      didn't strictly require renaming.

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