Thread (11 messages) flat view 11 messages, 5 authors, 2016-06-15

Re: builtin conversion between tabs and spaces

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:45:29

Stefan Karpinski schrieb:
This led me to wonder if it wouldn't make sense to have this
conversion ability built into git.
This wouldn't help your case a lot. It is still at the discretion of each
individual repository owner to enable the conversion. (You didn't mean to
make this conversion mandatory, did you?)

BTW, you don't need to change git code to achieve this. It's sufficient to
install a suitable "clean" filter:

echo "*.c filter=c-code" > .git/info/attributes
git config filter.c-code.clean tabs2spaces

where tabs2spaces is your utility that does the conversion.

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help