]> git.ipfire.org Git - thirdparty/git.git/commit
fast-import: remove dead strbuf
authorThalia Archibald <thalia@archibald.dev>
Sun, 14 Apr 2024 01:11:59 +0000 (01:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Apr 2024 17:06:17 +0000 (10:06 -0700)
commit212ab23e98546b24a183dce86b90595e1e4b92dd
treebaa4520958e27b45cfbf029346a029c50b2a94f6
parentb5062f752ef039b6fa8b3a7491072c2f1dfe3cf2
fast-import: remove dead strbuf

The strbuf in `note_change_n` is to copy the remainder of `p` before
potentially invalidating it when reading the next line. However, `p` is
not used after that point. It has been unused since the function was
created in a8dd2e7d2b (fast-import: Add support for importing commit
notes, 2009-10-09) and looks to be a fossil from adapting
`file_change_m`. Remove it.

Signed-off-by: Thalia Archibald <thalia@archibald.dev>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fast-import.c