Re: What's cooking in git.git (Jun 2010, #04; Wed, 23)
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Jun 24, 2010, 11:42 UTC
- Message-ID
- <4C2344C0.2010402@viscovery.net>
- In-Reply-To
- <20100624111757.GB3453@pvv.org>
Am 6/24/2010 13:17, schrieb Finn Arne Gangstad:
Show 15 quoted lines
> Assume you start out with a repo that has a lot of text files with > CRLF checked in (A). > > C---- > / \ > A---B---D > > B: Add "* text=auto" to .gitattributes and normalize all files to LF > only in repo > > D: try to merge C > > Without this patch you will get a ridiculous number of lf/crlf > conflicts when trying to merge C into D, since the repository contents > for C are "wrong" wrt the new .gitattributes file.
What should happen when you have C checked out (i.e., you do not yet have the updated .gitattributes in your worktree nor index) and merge B? Currently, you get the identical conflicts, but I suspect that the patch does not help in this situation. IOW, it breaks the merge symmetry.
-- Hannes