]> git.ipfire.org Git - thirdparty/git.git/commit
refspec: clarify function naming and documentation
authorMeet Soni <meetsoni3017@gmail.com>
Sat, 15 Feb 2025 08:45:39 +0000 (14:15 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Feb 2025 17:44:27 +0000 (09:44 -0800)
commit044b6f04f23d6c7e3c3750c9829db96b71470874
tree2732b18fd48c7aea09e8e299cc840d4ee8ccf46e
parent03944513488db4a81fdb4c21c3b515e4cb260b05
refspec: clarify function naming and documentation

Rename `match_name_with_pattern()` to `match_refname_with_pattern()` to
better reflect its purpose and improve documentation comment clarity.
The previous function name and parameter names were inconsistent, making
it harder to understand their roles in refspec matching.

- Rename parameters:
  - `key` -> `pattern` (globbing pattern to match)
  - `name` -> `refname` (refname to check)
  - `value` -> `replacement` (replacement mapping pattern)

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