Files
git/builtin
Jeff King 268a9caaf2 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>
2026-03-26 12:47:17 -07:00
..
2026-03-24 12:31:32 -07:00
2026-02-20 08:13:58 -08:00
2024-12-13 07:33:36 -08:00
2026-03-12 14:09:07 -07:00
2025-07-23 08:15:18 -07:00
2026-03-24 12:31:32 -07:00
2025-09-29 11:40:35 -07:00
2025-07-23 08:15:18 -07:00
2026-03-24 12:31:32 -07:00
2026-02-23 13:23:41 -08:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:18 -07:00
2025-07-01 14:46:38 -07:00
2025-08-22 13:13:20 -07:00
2026-03-09 14:36:55 -07:00
2026-03-25 12:58:05 -07:00
2026-03-12 14:09:07 -07:00
2026-03-23 09:20:30 -07:00
2026-03-24 12:31:32 -07:00
2026-02-19 13:24:57 -08:00
2024-12-18 10:44:31 -08:00
2025-12-25 08:29:27 +09:00
2025-08-21 13:47:00 -07:00
2026-03-19 09:54:56 -07:00
2025-10-02 12:26:12 -07:00
2025-07-23 08:15:18 -07:00
2026-03-26 12:47:17 -07:00
2026-02-20 08:13:58 -08:00
2025-07-23 08:15:18 -07:00
2026-03-24 12:31:31 -07:00
2025-09-16 11:37:06 -07:00
2025-08-21 13:46:59 -07:00