Revision de7c27a1869953158436e60542ea556d78c3f4c2 authored by Linus Arver on 20 October 2023, 19:01:35 UTC, committed by Junio C Hamano on 20 December 2023, 19:55:04 UTC
Previously these fields in the trailer_info struct were of type "const char *" and pointed to positions in the input string directly (to the start and end positions of the trailer block). Use offsets to make the intended usage less ambiguous. We only need to reference the input string in format_trailer_info(), so update that function to take a pointer to the input. While we're at it, rename trailer_start to trailer_block_start to be more explicit about these offsets (that they are for the entire trailer block including other trailers). Ditto for trailer_end. Reported-by: Glen Choo <glencbz@gmail.com> Signed-off-by: Linus Arver <linusa@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 97e9d0b
File | Mode | Size |
---|---|---|
debug.c | -rw-r--r-- | 15.0 KB |
files-backend.c | -rw-r--r-- | 90.7 KB |
iterator.c | -rw-r--r-- | 10.6 KB |
packed-backend.c | -rw-r--r-- | 47.6 KB |
packed-backend.h | -rw-r--r-- | 1.3 KB |
ref-cache.c | -rw-r--r-- | 12.8 KB |
ref-cache.h | -rw-r--r-- | 7.8 KB |
refs-internal.h | -rw-r--r-- | 26.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...