]> git.ipfire.org Git - thirdparty/git.git/commit
refspec: remove global tag refspec structure
authorPatrick Steinhardt <ps@pks.im>
Fri, 7 Jun 2024 06:37:57 +0000 (08:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jun 2024 17:30:49 +0000 (10:30 -0700)
commit235ac3f81ad1950f2e6b47b30561eb96844e1c85
tree134a6940986f9decc562037f209499e890774a10
parent66f892bb075f19bed784b86c7850a89c9a865aca
refspec: remove global tag refspec structure

We have a global tag refspec structure that is used by both git-clone(1)
and git-fetch(1). Initialization of the structure will break once we
enable `-Wwrite-strings`, even though the breakage is harmless. While we
could just add casts, the structure isn't really required in the first
place as we can simply initialize the structures at the respective
callsites.

Refactor the code accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
builtin/fetch.c
refspec.c
refspec.h