Skip to content

Instantly share code, notes, and snippets.

@Simounet
Created January 17, 2014 13:11
Show Gist options
  • Save Simounet/8473124 to your computer and use it in GitHub Desktop.
Save Simounet/8473124 to your computer and use it in GitHub Desktop.
Git's filter tabs to spaces
*.php filter=tabspace4
*.tpl filter=tabspace4
*.xml filter=tabspace4
*.yml filter=tabspace2
[filter "tabspace4"]
smudge = expand --tabs=4 --first-only
clean = expand --tabs=4 --initial
[filter "tabspace2"]
smudge = expand --tabs=2 --first-only
clean = expand --tabs=2 --initial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment