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

Re: Highlighting whitespace on removal with git diff

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 20, 2010, 06:10 UTC
Message-ID
<7v4ochxuld.fsf@alter.siamese.dyndns.org>
In-Reply-To
<D058D986-2A83-4979-A461-F7CB34EF9448@sb.org>
Kevin Ballard <kevin@sb.org> writes:
Show 6 quoted lines
> The highlight isn't telling you what changed on the line. It's telling
> you that this added line has trailing whitespace, and your
> core.whitespace config value is set such that this is considered an
> error.
>
> -Kevin Ballard

Which means that, in order to check for a whitespace error you removed in your change, you can give "-R" (reverse) option to your "git diff".

Previous: Kevin Ballard
Message 3 of 3 in “Highlighting whitespace on removal with git diff”
  1. Stonky FandangoOct 20, 2010
  2. Kevin BallardOct 20, 2010
  3. Junio C HamanoOct 20, 2010

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.