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

Re: git-format-patch little gripe

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 3, 2006, 17:51 UTC
Message-ID
<eifvhc$u59$1@sea.gmane.org>
In-Reply-To
<87y7qsv3l7.wl%cworth@cworth.org>
Carl Worth wrote:
> (We've currently got "git commit --amend" for example, but
> what I often want is "git goto old-commit; #hack; git commit --amend;
> git replay" or whatever, (in Stacked Git speak that is currently "stg
> goto old-commit; #hack; stg refresh; stg push --all").

<we are on branch 'top', and assume that branch 'tmp' does not exist> $ git checkout -b tmp old-commit #hack $ git commit --amend $ git rebase --onto tmp old-commit top $ git branch -D tmp

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Carl WorthNext: Luben Tuikov
Message 5 of 13 in “Re: git-format-patch little gripe”
  1. Martin LanghoffNov 3, 2006
  2. Luben TuikovNov 3, 2006
  3. Junio C HamanoNov 3, 2006
  4. Carl WorthNov 3, 2006
  5. Jakub NarebskiNov 3, 2006
  6. Luben TuikovNov 3, 2006
  7. Jakub NarebskiNov 3, 2006
  8. Junio C HamanoNov 3, 2006
  9. Carl WorthNov 3, 2006
  10. Jeff KingNov 3, 2006
  11. Jakub NarebskiNov 3, 2006
  12. Linus TorvaldsNov 4, 2006
  13. Jakub NarebskiNov 4, 2006

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.