From: Ben Knoble <ben.knoble@gmail.com>
To: Thomas Nemeth <tnemeth@free.fr>
Cc: Johannes Sixt <j6t@kdbg.org>,
git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: Git trailing blank lines feature configuration
Date: Sat, 1 Aug 2026 09:05:45 +0900 [thread overview]
Message-ID: <06230920-FCA6-495C-BFE5-04DF1CC2A426@gmail.com> (raw)
In-Reply-To: <5097209.GXAFRqVoOG@cixi>
> Le 31 juil. 2026 à 20:55, Thomas Nemeth <tnemeth@free.fr> a écrit :
>
> Le vendredi 31 juillet 2026, 13:08 Johannes Sixt a écrit :
>>> Am 31.07.26 um 12:19 schrieb Thomas Nemeth:
>>> I have the habit to keep 1 blank line at the end of my files. To
>>> me,
>>> it eases the EOF modifications (selecting code blocks, pasting
>>> them)
>>> in vim.
>>
>> (Call this is [x].)
>>
>>> Would it be possible to have a configuration option to avoid
>>> warnings
>>> (because I see that as a warning) about trailing blank lines ?
>>
>> Hearing the first time that an extra blank line at EOF is necessary or
>> useful. Would the correct question then perhaps be: how do you all
>
> I wouldn't say necessary, of course. It's -- at least -- my
> preference. For _my_ use case, it's useful. When I move code
> around, and that code is at the end of the file or to be put
> at the end of the file, I find it easier to already have a
> blank line there. That is... Because that's how I use vim to
> code.
I use Vim, too, and I’ve not personally encountered the desire for keeping a blank line at EOF (though occasionally certain operations benefit from placing one there first!).
I wonder if you could describe example workflows that lead to this desire? I might learn something, and in exchange, if I see a way to accomplish the same thing with less hassle, I’ll suggest it ;)
Cheers
next prev parent reply other threads:[~2026-08-01 0:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-31 10:19 Git trailing blank lines feature configuration Thomas Nemeth
2026-07-31 11:08 ` Johannes Sixt
2026-07-31 11:50 ` Thomas Nemeth
2026-08-01 0:05 ` Ben Knoble [this message]
2026-08-01 8:48 ` Thomas Nemeth
2026-07-31 18:49 ` Junio C Hamano
2026-08-01 8:21 ` Thomas Nemeth
2026-07-31 15:50 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=06230920-FCA6-495C-BFE5-04DF1CC2A426@gmail.com \
--to=ben.knoble@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=j6t@kdbg.org \
--cc=tnemeth@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox