git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3 1/2] merge-recursive: option to disable renames

From
FAFelipe Gonçalves Assis <felipeg.assis@gmail.com>
Date
Feb 17, 2016, 03:16 UTC
Message-ID
<CALMa68peGr3TsS8bTpsG3Xt5U5VtbLhKryhOSLEYaNZyjRuSgQ@mail.gmail.com>
In-Reply-To
<CAPig+cRCKQ8Vpr11XB-MSNsjDXjMHstaEAz333nMZxuKC8xmEg@mail.gmail.com>
On 16 February 2016 at 23:41, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 22 quoted lines
> On Tue, Feb 16, 2016 at 8:11 PM, Felipe Gonçalves Assis
> <felipeg.assis@gmail.com> wrote:
>> The recursive strategy turns on rename detection by default. Add a
>> strategy option to disable rename detection even for exact renames.
>>
>> Signed-off-by: Felipe Gonçalves Assis <felipegassis@gmail.com>
>> ---
>> diff --git a/Documentation/merge-strategies.txt b/Documentation/merge-strategies.txt
>> @@ -81,8 +81,14 @@ no-renormalize;;
>> +no-renames;;
>> +       Turn off rename detection.
>> +       See also linkgit:git-diff[1] `--no-renames`.
>> +
>>  rename-threshold=<n>;;
>>         Controls the similarity threshold used for rename detection.
>> +       Re-enables rename detection if disabled by a preceding
>> +       `no-renames`.
>
> I'm not sure that it is necessary to mention the "last one wins" rule
> here, but if you do so, does --no-renames documentation deserve
> similar treatment?
>

It is not so much about the "last one wins" rule, but about the fact that, given the sub-optimal name, it is not obvious that this option even enables renaming. The wording is just the best way I found to explain that without creating additional confusion.

I will apply your suggestion on the second commit. Please see the next patch proposal and tell what you think.

Thanks, Felipe

Previous: Eric SunshineNext: Felipe Gonçalves Assis
Message 4 of 8 in “merge-recursive: option to disable renames”
  1. 0/2 merge-recursive: option to disable renamesFelipe Gonçalves Assis, Feb 17, 2016
  2. 1/2 merge-recursive: option to disable renamesFelipe Gonçalves Assis, Feb 17, 2016
  3. Eric SunshineFeb 17, 2016
  4. Felipe Gonçalves AssisFeb 17, 2016
  5. 2/2 merge-recursive: more consistent interfaceFelipe Gonçalves Assis, Feb 17, 2016
  6. Eric SunshineFeb 17, 2016
  7. Eric SunshineFeb 17, 2016
  8. Felipe Gonçalves AssisFeb 17, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.