tags:

views:

56

answers:

2

I'm initially trying to adapt soft tabs in my projects but some testing with a python project tracked by git is showing issues; naturally git thinks everything has changed, and that is not what I'd prefer.

While git diff understands to drop whitespace from comparison with -w switch, there's no such switch for git commit.

Is the transition impossible to do nicely or is there a way to achieve git to ignore the sudden change?

A: 

http://stackoverflow.com/questions/2316677/can-git-automatically-switch-between-spaces-and-tabs/2318063#2318063

simplyharsh
It's a very good solution but I wouldn't be comfortable with having different contents in work dir and the repo
progo
A: 

A whitespace is different from a tab. May be you can use a filter.

Ashish