aboutsummaryrefslogtreecommitdiff
path: root/refs/ref-cache.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2026-03-26 15:05:25 -0400
committerJunio C Hamano <gitster@pobox.com>2026-03-26 12:47:17 -0700
commit268a9caaf29f0269147dacbea2c8d439c505c5ee (patch)
tree80004a85bd65bdce97f9d03fb2b06223824e0981 /refs/ref-cache.c
parent4d5fb9377bba1f45a940e10b0b7354fe7db2b301 (diff)
downloadgit-268a9caaf29f0269147dacbea2c8d439c505c5ee.tar.xz
rev-parse: simplify dotdot parsing
The previous commit simplified the way that revision.c parses ".." and "..." range operators. But there's roughly similar code in rev-parse. This is less likely to trigger a segfault, as there is no library function which we'd pass a string literal to, but it still causes the compiler to complain about laundering away constness via strstr(). Let's give it the same treatment, copying the left-hand side of the range operator into its own string. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/ref-cache.c')
0 files changed, 0 insertions, 0 deletions