]> git.ipfire.org Git - thirdparty/git.git/commit
apply: rename members that track line count and allocation length
authorPatrick Steinhardt <ps@pks.im>
Tue, 17 Sep 2024 10:08:06 +0000 (12:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Sep 2024 20:53:30 +0000 (13:53 -0700)
commite73686f6e4a37183bff723ceff7cd74e50361fa8
tree8bbfd71be56ddb36354e63cff4dc58e53cbf7eee
parent6eff8b8f406f53ad3301263300016813f1d73c63
apply: rename members that track line count and allocation length

The `struct image` has two members `nr` and `alloc` that track the
number of lines as well as how large its array is. It is somewhat easy
to confuse these members with `len` though, which tracks the length of
the `buf` member.

Rename these members to `line_nr` and `line_alloc` respectively to avoid
confusion. This is in line with how we typically name variables that
track an array in this way.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c