]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'cf/c23-const-preserving-strchr-updates-0'
authorJunio C Hamano <gitster@pobox.com>
Fri, 13 Feb 2026 21:39:24 +0000 (13:39 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Feb 2026 21:39:25 +0000 (13:39 -0800)
commit7855effc952777f2fac284e4461743cf5aa20ee6
tree37cbf589a05604e1d2d3ca2aaaa6ce10867893f1
parenta91de2172dac7e73de2088a7fdfeb532baa3bfca
parentfc9fd8065c6049243f50e90f00a847054ca15e28
Merge branch 'cf/c23-const-preserving-strchr-updates-0'

ISO C23 redefines strchr and friends that tradiotionally took
a const pointer and returned a non-const pointer derived from it to
preserve constness (i.e., if you ask for a substring in a const
string, you get a const pointer to the substring).  Update code
paths that used non-const pointer to receive their results that did
not have to be non-const to adjust.

* cf/c23-const-preserving-strchr-updates-0:
  gpg-interface: remove an unnecessary NULL initialization
  global: constify some pointers that are not written to
add-patch.c
builtin/receive-pack.c
diff.c
help.c
string-list.c