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

Git patch shows tab but files doesn't

From
JTJagan Teki <jteki@openedev.com>
Date
Feb 12, 2016, 16:02 UTC
Message-ID
<CAD6G_RTJuNsR6qawgco1H+ocKPThk1HsQLvhQigmzUb_c7UdaQ@mail.gmail.com>
Hi,

I edited a file as one space between #define and macro and tab space between macro and BIT value, similar as below.

#define USE_FSR BIT(6) #define SNOR_WR BIT(7)

Once I created the patch looks different as tab space between #define and macro and 2 tab spaces between macro and BIT value looks like it's added tab spaces while creating a patch as below.

+#define USE_FSR BIT(6) +#define SNOR_WR BIT(7)

Any help how to fix this, was it an issues with vim or do we have any git-config fixes for this?

-- 
Jagan.
Next: Jeff King
Message 1 of 2 in “Git patch shows tab but files doesn't”
  1. Jagan TekiFeb 12, 2016
  2. Jeff KingFeb 12, 2016

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.