]> git.ipfire.org Git - thirdparty/git.git/commit
trailer: spread usage of "trailer_block" language
authorLinus Arver <linusa@google.com>
Sun, 13 Oct 2024 11:58:42 +0000 (11:58 +0000)
committerTaylor Blau <me@ttaylorr.com>
Mon, 14 Oct 2024 16:33:02 +0000 (12:33 -0400)
commit3f0346d4dcdb6cf03f758895719dfe1e6a8cc696
treec0f646e899bf5cffe947d02982cc924bd0ed7b58
parentef8ce8f3d4344fd3af049c17eeba5cd20d98b69f
trailer: spread usage of "trailer_block" language

Deprecate the "trailer_info" struct name and replace it with
"trailer_block". This is more readable, for two reasons:

  1. "trailer_info" on the surface sounds like it's about a single
     trailer when in reality it is a collection of one or more trailers,
     and

  2. the "*_block" suffix is more informative than "*_info", because it
     describes a block (or region) of contiguous text which has trailers
     in it, which has been parsed into the trailer_block structure.

Rename the

    size_t trailer_block_start, trailer_block_end;

members of trailer_info to just "start" and "end". Rename the "info"
pointer to "trailer_block" because it is more descriptive. Update
comments accordingly.

Signed-off-by: Linus Arver <linus@ucla.edu>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
builtin/interpret-trailers.c
trailer.c
trailer.h