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

Re: kernel cherry UN-picking?

From
Junio C Hamano <junkio@cox.net>
Date
May 11, 2007, 22:11 UTC
Message-ID
<7v7irf9fjc.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vbqgr9fn9.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 29 quoted lines
> Suppose you have something like this (you may have more than one
> such merge but the principle is the same):
>
>   U---o---o---o---M---x---o---o---o---T
>                  /
>    Linville o---o
>
> Up to 'U' you have already sent upstream and no need for
> resending.  'M' is merge with Linville tree.  'x' is the bad
> one, and 'o' are good ones.  'T' is the tip of your net driver
> branch.
>
> First find out 'x'.  Then
>
>         git format-patch -o ./outdir x..T
>
> would format everything starting from (but excluding) 'x' up to
> 'T'.
>
> Then
>
>         git reset --hard x^
>         git am ./outdir/*.patch
>
> would rebuild:
>
>   U---o---o---o---M---x---o'--o'--o'--T'
>                  /
>    Linville o---o
Correction.  This would rebuild:
    U---o---o---o---M-------o'--o'--o'--T'
                   /
     Linville o---o
as if 'x' did not happen.
Previous: Junio C HamanoNext: Jan Harkes
Message 7 of 9 in “kernel cherry UN-picking?”
  1. Jeff GarzikMay 11, 2007
  2. Andrew MortonMay 11, 2007
  3. Jeff GarzikMay 11, 2007
  4. Josef SipekMay 15, 2007
  5. Junio C HamanoMay 11, 2007
  6. Junio C HamanoMay 11, 2007
  7. Junio C HamanoMay 11, 2007
  8. Jan HarkesMay 12, 2007
  9. Jan HarkesMay 12, 2007

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.