-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merge.renames not work #5178
Comments
@ZeroChiLi Could you help us understand what you mean? One good way to do that would be to provide a Minimal, Complete, and Verifiable example, i.e. a detailed, step-by-step description that sets up a fresh Git repository and demonstrates precisely what is going wrong, by example. |
My project is very large and it may take some time to reproduce a mini project. My main problem is that there is no way to turn off the |
If this is really true, then something very simple like this should reproduce the bug (and I am a bit miffed that it was me who needed to write this, I specifically asked you to provide such an example, I will conclude my involvement in this ticket after this, as a consequence): git init test-renames
cd test-renames
echo a >a
git add a
git commit -m a
# start a branch that renames the file
git mv a b
git commit -m rename
# start another branch that modifies the file
git reset --hard HEAD^
echo c >a
git commit -c a
# now merge, turning off rename detection
git -c merge.renames=false merge HEAD@{2}
# now test whether the file `b` has the contents `c`,
# which would mean that the rename was detected, still |
I apologize for the misunderstanding; I thought it was an example where the result of the |
@ZeroChiLi so this is not a bug? Or is it a bug? If the latter, please modify the provided shell script until it reproduces the issue you seek to report. |
Setup
defaults?
to the issue you're seeing?
no
Details
CMD
Minimal, Complete, and Verifiable example
this will help us understand the issue.
no
When I perform the
merge
operation, the result offind_renames
indiffcore-rename.c
is not what I expected, comparing two unrelated objects. I want to merge branches usingmerge
when I turn off rename checking, I have set upgit config merge.renames=false
, but the code doesn't seem to support it?URL to that repository to help us with testing?
no
The text was updated successfully, but these errors were encountered: