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

Re: Rebase & Trailing Whitespace

From
Clemens Buchacher <drizzd@aon.at>
Date
Sep 3, 2011, 20:18 UTC
Message-ID
<20110903201832.GB8362@ecki>
In-Reply-To
<20110902082851.GA17703@sigill.intra.peff.net>
On Fri, Sep 02, 2011 at 04:28:51AM -0400, Jeff King wrote:
Show 7 quoted lines
> 
> Yeah, there are a lot. Because of the potential disruption to patches in
> progress, though, we tend not to do big bulk updates of style changes.
> But it may be worth using the
> 
>   rm foo.c
>   git diff -R | git apply --whitespace=fix
I am looking at the output of:
 git diff --check 4b825 -- $(git ls-files '*.[ch]'|grep -v ^compat)

Most of those are false positives from multiline function argument lists, which are aligned with the first line. So the above command would break more than it would fix.

I don't care either way, but for future reference: Do we or do we not want indentation with spaces in this case?

Clemens
Previous: Jeff KingNext: Jeff King
Message 7 of 8 in “Rebase & Trailing Whitespace”
  1. Hilco WijbengaAug 31, 2011
  2. Jeff KingSep 1, 2011
  3. Philip OakleySep 1, 2011
  4. Jeff KingSep 1, 2011
  5. Michael J GruberSep 2, 2011
  6. Jeff KingSep 2, 2011
  7. Clemens BuchacherSep 3, 2011
  8. Jeff KingSep 9, 2011

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.