]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'jk/c23-const-preserving-fixes-more'
authorJunio C Hamano <gitster@pobox.com>
Thu, 9 Apr 2026 18:21:59 +0000 (11:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Apr 2026 18:21:59 +0000 (11:21 -0700)
commit3eabc358a940e5ac2e0cb161957a51f3e2a5a3a0
tree46f800c359bcef80b85cf632190126b5b72fc0e8
parentb15384c06f77bc2d34d0d3623a8a58218313a561
parent58589c20e555de187c8026ac721467919595543f
Merge branch 'jk/c23-const-preserving-fixes-more'

Further work to adjust the codebase for C23 that changes functions
like strchr() that discarded constness when they return a pointer into
a const string to preserve constness.

* jk/c23-const-preserving-fixes-more:
  git-compat-util: fix CONST_OUTPARAM typo and indentation
  refs/files-backend: drop const to fix strchr() warning
  http: drop const to fix strstr() warning
  range-diff: drop const to fix strstr() warnings
  pkt-line: make packet_reader.line non-const
  skip_prefix(): check const match between in and out params
  pseudo-merge: fix disk reads from find_pseudo_merge()
  find_last_dir_sep(): convert inline function to macro
  run-command: explicitly cast away constness when assigning to void
  pager: explicitly cast away strchr() constness
  transport-helper: drop const to fix strchr() warnings
  http: add const to fix strchr() warnings
  convert: add const to fix strchr() warnings
builtin/receive-pack.c
http-push.c
http.c
refs/files-backend.c
run-command.c
transport-helper.c