Subject: Re: git-format-patch little gripe

From: Jakub Narebski <[email-masked]>
Date: Fri, 03 Nov 2006 18:51:04 +0100

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