Re: git-log --format missing trailing newline character
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 26, 2024, 16:00 UTC
- Message-ID
- <xmqq4j2qzb6d.fsf@gitster.g>
- In-Reply-To
- <elrdfos3fkzjdmhvyxbshsbt6nw723mr3m7blw7ghghnresxi6@vvj7u6jwlgur>
Alejandro Colomar <alx@kernel.org> writes:
Show 9 quoted lines
> Hi Andreas, > > On Mon, Dec 23, 2024 at 10:09:14PM GMT, Andreas Schwab wrote: >> On Dez 23 2024, Alejandro Colomar wrote: >> >> > Anyway, it feels awkward that git-log(1) skips the last newline whith >> > --format=format. Should that be fixed? >> >> If you want terminator semantics, use tformat: instead of format:.
Or, "--format=%H" should do the right thing, as that is a mere short-hand for "--pretty=tformat:%H".