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

Re: [PATCH 0/4] reworking git-rebase

From
SVSven Verdoolaege <skimo@kotnet.org>
Date
Nov 17, 2005, 10:30 UTC
Message-ID
<20051117103027.GR8383MdfPADPa@greensroom.kotnet.org>
In-Reply-To
<7voe4lfpxm.fsf@assigned-by-dhcp.cox.net>
On Tue, Nov 15, 2005 at 03:32:05PM -0800, Junio C Hamano wrote:
> It notes that fact, and goes ahead to apply D and E, and at the
> very end tells you to deal with C by hand.  Even if you somehow
> managed to replay C on top of the result, you would now end up
> with ...-B-...-U-A-D-E-C.

Actually this is sometimes useful when rewriting history. Suppose you cherry-pick two changes that touch the same piece of code and combine them into a single change and then rebase all your changes on top of this combined change. The two cherry-picked changes will not apply and end up and at the end of the chain where you can simply discard them.

Will the reworked rebase still support this use or is there a better way to do this ?

skimo
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 8 in “reworking git-rebase”
  1. 0/4 reworking git-rebaseJunio C Hamano, Nov 15, 2005
  2. 1/4 Rewrite rebase to use git-format-patch piped to git-am.Junio C Hamano, Nov 15, 2005
  3. 2/4 apply: allow-binary-replacement.Junio C Hamano, Nov 15, 2005
  4. 3/4 diff: --full-indexJunio C Hamano, Nov 15, 2005
  5. 4/4 rebase: make it usable for binary files as well.Junio C Hamano, Nov 15, 2005
  6. git-am: --resolved.Junio C Hamano, Nov 16, 2005
  7. Sven VerdoolaegeNov 17, 2005
  8. Junio C HamanoNov 17, 2005

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.