aboutsummaryrefslogtreecommitdiffstats
path: root/diff.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-06-07 08:37:57 +0200
committerJunio C Hamano <gitster@pobox.com>2024-06-07 10:30:49 -0700
commit235ac3f81ad1950f2e6b47b30561eb96844e1c85 (patch)
tree134a6940986f9decc562037f209499e890774a10 /diff.c
parentreftable: cast away constness when assigning constants to records (diff)
downloadgit-235ac3f81ad1950f2e6b47b30561eb96844e1c85.tar.gz
git-235ac3f81ad1950f2e6b47b30561eb96844e1c85.zip
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>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions