Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to skip inexact rename detection with git cherry-pick

I have a about 10 commits I need to cherry pick from an old branch to a current branch on a large repo. Every time I run the cherry-pick command I get the following:

$ git cherry-pick -x 11a77a55bf
Performing inexact rename detection:   0% (438032/938483560)

I let it complete the first time, which took about about 10-15 minutes. But it does this for every commit I pick. Is there a way to prevent this, at least for the current command?

I tried setting a renameLimit but it didn't help:

git -c diff.renameLimit=1 cherry-pick -x 11a77a55bf
Performing inexact rename detection:   0% (1259342/938483560)
like image 252
TTT Avatar asked Oct 20 '25 14:10

TTT


1 Answers

git cherry-pick uses the merge machinery behind the scenes, which has its own configuration related to rename detection: merge.renameLimit.

git -c merge.renameLimit=1 cherry-pick -x 11a77a55bf

does what you want.

like image 107
j6t Avatar answered Oct 22 '25 06:10

j6t



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!