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 8487027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:07:03+00:00 2026-06-10T21:07:03+00:00

Suppose I only need to work on a single file. From the git-log man

  • 0

Suppose I only need to work on a single file. From the git-log man page, it seems like I should use –follow. What confuses me is that for –find-renames, I can specify the threshold on the similarity index, while there is no such threshold for –follow.

My question is why I do not need to specify a threshold for –follow to find renaming?

Thanks

  • 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-10T21:07:04+00:00Added an answer on June 10, 2026 at 9:07 pm

    If you specify a threshold with --find-renames, it will be applied when using --follow. But when you only specify --follow the default similarity index is used (which should be alright in most cases).

    Follow requires rename detection to work, but rename detection itself is also useful for e.g. git show, git status, etc. I recommend enabling it by default using:

    git config --global diff.renames true
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to copy files and directories within a directory. Suppose there is only
Suppose I have a GUI-only application that runs on Windows and I'd like to
I've got an xml output self-generated from a cms (drupal) I need to work
Suppose I have a very large site like amazon.com. I’d like to use asp.net
Suppose you are working with some data, which comes from a JSON file. You
All, I have a page which is suppose to take up only the available
i have regular expression which need to cover multi lines(delete comments from pascal file)
I need a function to work for only the given object. I'm not sure
Suppose I only had the regular J2SE http libraries but wanted to write a
Consider the case of blogspot.com the domain is the one blogspot.com only but suppose

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.