From: "J. Bruce Fields" <bfields@fieldses.org>
To: David Kastrup <dak@gnu.org>
Cc: git@vger.kernel.org
Subject: Re: Submit/Workflow question
Date: Sun, 29 Jul 2007 12:03:47 -0400 [thread overview]
Message-ID: <20070729160347.GA26637@fieldses.org> (raw)
In-Reply-To: <85abtfw6d5.fsf@lola.goethe.zz>
On Sun, Jul 29, 2007 at 05:56:54PM +0200, David Kastrup wrote:
>
> Suppose that I have created a half-baked patch A suiting my personal
> needs and went on from there, having something like
>
> ...->A->B->...
>
> Now at some point of time I decide that really A should be made fit
> for submission. Basically, I'd want to do
> git-reset --hard A
> [edit some]
> git-commit --amend -a
> git-format-patch HEAD~1
>
> in order to arrive at a nice submittable patch. However, I don't want
> to lose B and the following stuff, and the resulting HEAD should
> include the improved of A (it is fine if that needs additional steps,
> and it is fine if it is just HEAD that gets the fixed version, not B).
>
> So how to do this? Branch at A^, rebase on A,
Just branch on A. Or actually I just check out A at this point (leaving
me not on any branch).
> fix the stuff, commit
> with --amend -a, rebase on master, rename the temporary branch to
> master (killing the old master), format and submit the patch?
I'm not completely sure I follow that sequence, but something like that
should work. A similar approach:
http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#modifying-one-commit
I do something pretty close to what's described there, except I
generally just cut and paste SHA1's instead of making the temporary tag.
--b.
next prev parent reply other threads:[~2007-07-29 16:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-29 15:56 Submit/Workflow question David Kastrup
2007-07-29 16:03 ` David Kastrup
2007-07-29 16:03 ` J. Bruce Fields [this message]
2007-07-29 16:06 ` David Kastrup
2007-07-29 17:21 ` Jason Sewall
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=20070729160347.GA26637@fieldses.org \
--to=bfields@fieldses.org \
--cc=dak@gnu.org \
--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).