Cherry pick a commit but with files in another location
- From
- Ani Sinha <ani@anirban.org>
- Date
- Apr 11, 2020, 11:21 UTC
- Message-ID
- <FC3905FB-D3B9-433D-876D-8DB68D3491C3@anirban.org>
Hi,
I have an use case where I need to cherry pick a change from one branch to another. The change will apply cleanly but the files in the branch where I want to cherry pick the co mit to have been moved under a different directory. So simple cherry pick will result in conflicts. Is there a clean way to cherry pick in this case? Is there an option to provide -p0, -p1 etc to the patch?
Thanks Ani