Re: Unresolved issues
- From
Martin Waitz <tali@admingilde.org>
- Date
- Feb 21, 2007, 10:42 UTC
- Message-ID
- <20070221104209.GM21842@admingilde.org>
- In-Reply-To
- <Pine.LNX.4.63.0702210136050.22628@wbgn013.biozentrum.uni-wuerzburg.de>
hoi :)
On Wed, Feb 21, 2007 at 01:39:48AM +0100, Johannes Schindelin wrote:
> In that case, .gitattributes (I mean a tracked one) would be wrong, wrong, > wrong.
I don't think so.
> It's a local setup if you want auto-CRLF or not. So, why not just make it > a local setting (if in config or $GIT_DIR/info/gitattributes, I don't > care) which shell patterns are to be transformed on input and/or output?
The file-type/whatever information about paths is per repository. Whether you want to do crlf conversion for "text" files is a local setting. So I do think that a tracked .gitattributes makes sense.
Of course you also need some local settings (e.g. in .git/config) to use that information. Perhaps something like:
[filetype "text*"] AutoCRLF = yes
[filetype "text/xml"] Merge = xml-merge -whatever
-- Martin Waitz