]> git.ipfire.org Git - thirdparty/git.git/commit
refspec: replace `refspec_init()` with fetch/push variants
authorTaylor Blau <me@ttaylorr.com>
Tue, 18 Mar 2025 22:50:21 +0000 (18:50 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Mar 2025 08:45:16 +0000 (01:45 -0700)
commit0baad1f3aee508d84bf74b9670f283f8c91e55dd
treecb48414cc881f331b4e2d90da6c0485c0c9b648c
parent3809633d0adb77b02ba8cfe87578134e6a30f54d
refspec: replace `refspec_init()` with fetch/push variants

To avoid having a Boolean argument in the refspec_init() function,
replace it with two variants:

  - `refspec_init_fetch()`
  - `refspec_init_push()`

to codify the meaning of that Boolean into the function's name itself.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Acked-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refspec.c
refspec.h
remote.c
transport-helper.c