Re: [PATCH] Clarify text filter merge conflict reduction docs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Wednesday, June 30, 2010 - 8:15 am

Eyvind Bernhardsen <eyvind.bernhardsen@gmail.com> writes:


Nothing that elaborate.

I was envisioning that we would compare object names of the .gitattributes
files in directories that lead to the path being merged in three trees,
and we use the new slowpath unless all three match.  You could look _into_
the actual contents of .gitattributes and decide that a particular change
does not affect the path you are merging, but I don't think it is worth
it; sane people are expected not to flip CRLF/LF around many times a day
anyway, so changes to .gitattributes should already be rare events.

We will be walking the trees in parallel while merging anyway, so when you
have to merge a/b/c.txt, we would already have opened the top-level tree,
tree "a", and tree "a/b" already, and we should be able pick up the object
name of .gitattributes, a/.gitattributes and b/.gitattributes cheaply
without opening any extra object.

--
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:
[PATCH v4 0/3] CRLF merge conflict reduction, take 4, Eyvind Bernhardsen, (Sun Jun 27, 12:43 pm)
[PATCH v4 1/3] Avoid conflicts when merging branches with ..., Eyvind Bernhardsen, (Sun Jun 27, 12:43 pm)
[PATCH v4 2/3] Try normalizing files to avoid delete/modif ..., Eyvind Bernhardsen, (Sun Jun 27, 12:43 pm)
[PATCH v4 3/3] Don't expand CRLFs when normalizing text du ..., Eyvind Bernhardsen, (Sun Jun 27, 12:43 pm)
Re: [PATCH v4 1/3] Avoid conflicts when merging branches w ..., Finn Arne Gangstad, (Mon Jun 28, 1:02 am)
[PATCH] Clarify text filter merge conflict reduction docs, Eyvind Bernhardsen, (Mon Jun 28, 12:32 pm)
Re: [PATCH] Clarify text filter merge conflict reduction docs, Finn Arne Gangstad, (Mon Jun 28, 1:31 pm)
Re: [PATCH] Clarify text filter merge conflict reduction docs, Eyvind Bernhardsen, (Tue Jun 29, 2:18 pm)
Re: [PATCH] Clarify text filter merge conflict reduction docs, Eyvind Bernhardsen, (Wed Jun 30, 1:20 am)
Re: [PATCH] Clarify text filter merge conflict reduction docs, Junio C Hamano, (Wed Jun 30, 8:15 am)
Re: [PATCH] Clarify text filter merge conflict reduction docs, Eyvind Bernhardsen, (Wed Jun 30, 2:32 pm)