git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Subject: Re: git-format-patch little gripe
Date: Fri, 03 Nov 2006 18:51:04 +0100	[thread overview]
Message-ID: <eifvhc$u59$1@sea.gmane.org> (raw)
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


  reply	other threads:[~2006-11-03 17:51 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-03  9:07 git-format-patch little gripe Luben Tuikov
2006-11-03  9:22 ` Martin Langhoff
2006-11-03  9:59   ` Luben Tuikov
2006-11-03 11:17     ` Junio C Hamano
2006-11-03 17:32       ` Carl Worth
2006-11-03 17:51         ` Jakub Narebski [this message]
2006-11-03 19:52       ` Luben Tuikov
2006-11-03 20:53         ` Jakub Narebski
2006-11-03 22:26         ` Junio C Hamano
2006-11-03 22:35           ` Carl Worth
2006-11-03 23:16             ` Jeff King
2006-11-03 23:37               ` Jakub Narebski
2006-11-04  0:44                 ` Linus Torvalds
2006-11-04  1:05                   ` Jakub Narebski
2006-11-03 18:50 ` Jeff King
2006-11-03 20:37   ` Luben Tuikov
2006-11-25 15:30   ` Sean
     [not found]   ` <20061125103033.2ea742d3.seanlkml@sympatico.ca>
2006-11-25 15:39     ` Jeff King
2006-11-25 15:42       ` Sean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='eifvhc$u59$1@sea.gmane.org' \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).