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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eyvind Bernhardsen
Date: Tuesday, June 29, 2010 - 2:18 pm

On 29. juni 2010, at 18.19, Junio C Hamano wrote:


Agreed, and thanks.  Messing with the merge machinery unnerves me a little.

Shouldn't the normalization in merge-recursive be conditional too?

Something like this squashed into the delete/modify patch:

--8<--
diff --git a/merge-recursive.c b/merge-recursive.c
index a2c174f..49bd3d2 100644
--- a/merge-recursive.c
+++ b/merge-recursive.c
@@ -1079,6 +1079,8 @@ static int normalized_eq(const unsigned char *a_sha,
 {
        struct strbuf a = STRBUF_INIT;
        struct strbuf b = STRBUF_INIT;
+       if (!core_ll_merge_double_convert)
+               return 0;
        int ret = 0;
        if (a_sha && b_sha &&
            read_sha1_strbuf(a_sha, path, &a) &&
--8<--

Sorry about the whitespace-damaged inline diff, I'll redo the series if necessary.
-- 
Eyvind

--
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, Eyvind Bernhardsen, (Wed Jun 30, 2:32 pm)