Git patch shows tab but files doesn't
- From
- Jagan 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.