Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7754471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:18:59+00:00 2026-06-01T12:18:59+00:00

We have some configuration options for the rename detection heuristics during diff ( log

  • 0

We have some configuration options for the rename detection heuristics during diff (log, show) and merge:

diff.renameLimit
The number of files to consider when performing the copy/rename detection; equivalent to the git diff option -l.

diff.renames
Tells git to detect renames. If set to any boolean value, it will enable basic rename detection. If set to “copies” or “copy”, it will detect copies, as well.

merge.renameLimit
The number of files to consider when performing rename detection during a merge; if not specified, defaults to the value of diff.renameLimit.

Also we have an option to control when files with different contents are considered a rename for diff (log, show):

-M[<n>]
(or –find-renames[=<n>])

Detect renames. If n is specified, it is a threshold on the similarity index (i.e. amount of addition/deletions compared to the file’s size). For example, -M90% means git should consider a delete/add pair to be a rename if more than 90% of the file hasn’t changed.

QUESTION: How to control a threshold on the similarity index for merge? It seems to be available only as a command-line option for diff and some others but not merge. And no configuration key even for diff. Is it not applicable for merge for some reason?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:19:00+00:00Added an answer on June 1, 2026 at 12:19 pm

    If you’re merging with the recursive merge strategy (default) you can use the rename-threshold option:

    git merge -X rename-threshold=80 branch
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that requires some configuration files. I want to keep the
I have an application that takes some input and generates configuration files as output.
I have multiple context files. Requirement is: one particular Bean (which makes some configuration
I have some configuration options for a program stored in a JSON file. I
I need to have some configuration options on my website. I thought it would
I have created a C# .Net windows service. There are some configuration files which
I have been looking through some configuration files and I've seen both being used
I have some configuration data in a config file that I read off disk
I have some values in a configuration file (XML file) with some values like
I have an app that has some configuration settings stored in SharedPreference. Now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.