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

Re: is there a canonical doc about how to deal with whitespace issues?

From
Derrick Stolee <stolee@gmail.com>
Date
Jun 8, 2018, 17:15 UTC
Message-ID
<b8801d73-71c4-15c8-4b29-8e4edb3faec9@gmail.com>
In-Reply-To
<alpine.LFD.2.21.1806080914520.20892@localhost.localdomain>
On 6/8/2018 9:18 AM, Robert P. J. Day wrote:
Show 16 quoted lines
>    for one of my courses, i wanted to write a section about the various
> techniques for dealing with whitespace issues in git, so i started
> making a list, things like:
>
>    - running "git diff --check"
>    - "git commit --cleanup=" possibilities
>    - config options like core.{eol,safecrlf,autocrlf}
>    - i'm sure there are client-side hooks that can be mentioned
>
> etc, etc.
>
>    has anyone ever written a doc that collects these things in one
> place? if not, i guess i have to write one.
>
> rday
>

I don't know of a doc for whitespace issues, but the contributing guide on GitForWindows [1] recommends `git rebase --whitespace=fix`.

Thanks, -Stolee

[1] https://github.com/git-for-windows/git/blob/master/CONTRIBUTING.md#polish-your-commits

Previous: Robert P. J. DayNext: Stefan Beller
Message 2 of 4 in “is there a canonical doc about how to deal with whitespace issues?”
  1. Robert P. J. DayJun 8, 2018
  2. Derrick StoleeJun 8, 2018
  3. Stefan BellerJun 11, 2018
  4. Robert P. J. DayJun 13, 2018

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.