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

Re: Cherry pick a commit but with files in another location

From
ASAni Sinha <ani@anirban.org>
Date
Apr 11, 2020, 13:25 UTC
Message-ID
<AE1E8050-EF04-47A0-96E0-27EEC4A0C013@anirban.org>
In-Reply-To
<CAN0heSodSeT=Sj4pnutFPgbu9jjwQ_JBtBee1iyP=D3Oc_5G=g@mail.gmail.com>
> On Apr 11, 2020, at 6:13 PM, Martin Ågren <martin.agren@gmail.com> wrote:
> 
> Do you use "git cherry-pick", "git am" or "git apply"?
Yes
> (Or
> something else entirely?) Are you aware of "-p<n>" for "git apply"
> (and "--directory=<root>"?) and are wondering what similar options are
> available with "git cherry-pick"?
Yes was wondering if similar options exist for cherry pick. I wanted to use cherry-pick  so that cherry picks can be tracked by git.
Previous: Martin ÅgrenNext: Martin Ågren
Message 4 of 5 in “Cherry pick a commit but with files in another location”
  1. Ani SinhaApr 11, 2020
  2. Martin ÅgrenApr 11, 2020
  3. Martin ÅgrenApr 11, 2020
  4. Ani SinhaApr 11, 2020
  5. Martin ÅgrenApr 13, 2020

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.