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

Re: two git-cherry-pick enhancements

From
GSGovind Salinas <govind@sophiasuchtig.com>
Date
May 21, 2008, 18:36 UTC
Message-ID
<5d46db230805211136k7bf81bc0t9610fe2bb50a08b9@mail.gmail.com>
In-Reply-To
<20080521163817.GA13124@denkbrett.schottelius.org>

On Wed, May 21, 2008 at 11:38 AM, Nico -telmich- Schottelius <nico-git-20080521@schottelius.org> wrote:

Show 22 quoted lines
> Hello!
>
> When using git-cherry-pick there are two things missing for me and just
> wondered how you see it (or maybe have a good solution):
>
> - Apply only parts of the patch which applies to <file ...>:
>   I sometimes want to apply patches only to some, but not all
>   files the patch introduces
>
> - Interactively selecting which parts to apply:
>   I want only 7 out of 10 changes the patch introduces.
>   It would help alot, if I could choose which parts I want
>   to apply for every part of the patch.
>
> Anything planned like that or did I oversee the right way?
>
> Sincerly
>
> Nico
>
> P.S.: Please CC me on reply, I am not subscribed.
>
You could "git cherry-pick --no-commit <id>" and then "git add -p"
-Govind
Previous: Nico -telmich- SchotteliusNext: Sitaram Chamarty
Message 2 of 4 in “two git-cherry-pick enhancements”
  1. Nico -telmich- SchotteliusMay 21, 2008
  2. Govind SalinasMay 21, 2008
  3. Sitaram ChamartyMay 22, 2008
  4. Johannes SchindelinMay 22, 2008

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.