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

How to turn off rename detection for cherry-pick?

From
PRPavel Rappo <pavel.rappo@gmail.com>
Date
Aug 26, 2024, 11:09 UTC
Message-ID
<CAChcVumj41NCAcjzLyDGAyb+-QuL0Ha1AANe67jKVBT8xDRYdg@mail.gmail.com>

As far as I understand, the "ort" strategy does not allow turning off rename detection. The best you can do is set the similarity index threshold to 100%. However, it does not address the case of candidate files being exactly the same.

So, it seems to me that the only way to do it would be to downgrade to the "recursive" strategy and set the "no-renames" option:

    git cherry-pick --strategy=recursive --strategy-option=no-renames
<commit>...
Is my understanding correct? Thanks.
Next: Pavel Rappo
Message 1 of 10 in “How to turn off rename detection for cherry-pick?”
  1. Pavel RappoAug 26, 2024
  2. Pavel RappoAug 29, 2024
  3. Jeff KingAug 29, 2024
  4. Pavel RappoAug 29, 2024
  5. Jeff KingAug 30, 2024
  6. Pavel RappoAug 30, 2024
  7. Elijah NewrenAug 30, 2024
  8. Junio C HamanoAug 30, 2024
  9. Junio C HamanoAug 30, 2024
  10. Junio C HamanoAug 30, 2024

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.