On Wed, Nov 24, 2021 at 9:55 PM Junio C Hamano <gitster@xxxxxxxxx> wrote: > Ehh, let's step back a bit. > > Is there anything in the common part and files backend in ref API > that needs to be changed to fix some bug? I do not see anything > broken that needs to be fixed by "assert that the string ends in LF > and doesn't need to add LF itself" or by "always add LF". Clearly, you and I disagree about what is logical behavior here. I've reworked the series to fit with your opinion on the matter. PTAL. -- Han-Wen Nienhuys - Google Munich I work 80%. Don't expect answers from me on Fridays. -- Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschäftsführer: Paul Manicle, Halimah DeLaine Prado