git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [GSoC PATCH v2] userdiff: add builtin driver for gitconfig syntax

From
D. Ben Knoble <ben.knoble@gmail.com>
Date
Mar 24, 2025, 20:23 UTC
Message-ID
<CALnO6CAsF1J39MeO-KY80bQfFL1V3UHT08-Va2R6QNh0JqwZ9A@mail.gmail.com>
In-Reply-To
<d4c0c9a4-0402-4456-9fa0-3102b5bcc3dc@kdbg.org>
On Mon, Mar 24, 2025 at 3:18 AM Johannes Sixt <j6t@kdbg.org> wrote:
Show 5 quoted lines
>
>
> You have now managed to avoid the "No newline at end of file", but have
> added a blank line instead. Not a big deal, but unconventional.
>
I missed the opportunity to reply to the original patch on this front,
but here's the information I usually give out:
- VS Code's default settings do not respect POSIX end-of-file newline
standards, so you should probably change them [1]
- There's a similar setting for Intellij IDEA [2] and Vim [3], but
they might have saner defaults (Vim certainly does)
- If your editor or IDE picks up on editorconfig settings, you'll be
able to avoid this
- Git can warn you with diff or show saying "No newline at end of
file," so a careful self-review also catches these.

[1]: https://stackoverflow.com/q/44704968/4400820 [2]: https://stackoverflow.com/q/16761227/4400820 [3]: https://vimhelp.org/options.txt.html#%27endofline%27

-- 
D. Ben Knoble
Previous: Johannes SixtNext: Lucas Seiki Oshiro
Message 3 of 5 in “userdiff: add builtin driver for gitconfig syntax”
  1. userdiff: add builtin driver for gitconfig syntaxLucas Seiki Oshiro, Mar 24, 2025
  2. Johannes SixtMar 24, 2025
  3. D. Ben KnobleMar 24, 2025
  4. Lucas Seiki OshiroMar 25, 2025
  5. Junio C HamanoMar 24, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.