Re: builtin conversion between tabs and spaces

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Sixt
Date: Tuesday, October 14, 2008 - 11:26 pm

Stefan Karpinski schrieb:

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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
builtin conversion between tabs and spaces, Stefan Karpinski, (Tue Oct 14, 6:44 pm)
Re: builtin conversion between tabs and spaces, Stefan Karpinski, (Tue Oct 14, 6:47 pm)
Re: builtin conversion between tabs and spaces, Alex Riesen, (Tue Oct 14, 11:25 pm)
Re: builtin conversion between tabs and spaces, Johannes Sixt, (Tue Oct 14, 11:26 pm)
Re: builtin conversion between tabs and spaces, Stefan Karpinski, (Wed Oct 15, 1:52 pm)
Re: builtin conversion between tabs and spaces, Stefan Karpinski, (Wed Oct 15, 1:55 pm)
Re: builtin conversion between tabs and spaces, Jonathan del Strother, (Wed Oct 15, 2:02 pm)
Re: builtin conversion between tabs and spaces, Stefan Karpinski, (Wed Oct 15, 2:18 pm)
Re: builtin conversion between tabs and spaces, Stefan Karpinski, (Wed Oct 15, 4:02 pm)
Re: builtin conversion between tabs and spaces, A Large Angry SCM, (Wed Oct 15, 4:34 pm)
Re: builtin conversion between tabs and spaces, Stefan Karpinski, (Wed Oct 15, 7:00 pm)