* Question about rewrite commits
@ 2009-05-05 11:45 Anner van Hardenbroek
2009-05-05 12:52 ` Ferry Huberts (Pelagic)
2009-05-05 19:46 ` Dirk Süsserott
0 siblings, 2 replies; 4+ messages in thread
From: Anner van Hardenbroek @ 2009-05-05 11:45 UTC (permalink / raw)
To: Git Mailing List
[-- Attachment #1: Type: text/plain, Size: 314 bytes --]
Hi!
I've a question about rewriting commits. I'd like to change the
branches so that "Introduced BTRmxSoapArgument, second fase + code
cleanup." is right below (a straight vertical line) "No HTML errors
because we have nice ones!". How can I do that?
Thanks,
Anner.
--
Anner van Hardenbroek,
dwlnetnl@gmail.com
[-- Attachment #2: gitcommit.jpg --]
[-- Type: image/jpeg, Size: 27593 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about rewrite commits
2009-05-05 11:45 Question about rewrite commits Anner van Hardenbroek
@ 2009-05-05 12:52 ` Ferry Huberts (Pelagic)
2009-05-05 13:27 ` Anner van Hardenbroek
2009-05-05 19:46 ` Dirk Süsserott
1 sibling, 1 reply; 4+ messages in thread
From: Ferry Huberts (Pelagic) @ 2009-05-05 12:52 UTC (permalink / raw)
To: Anner van Hardenbroek; +Cc: Git Mailing List
Anner van Hardenbroek wrote:
> Hi!
>
> I've a question about rewriting commits. I'd like to change the
> branches so that "Introduced BTRmxSoapArgument, second fase + code
> cleanup." is right below (a straight vertical line) "No HTML errors
> because we have nice ones!".
it already is :-)
or did you mean that you want to get rid of the merge? that's an
entirely different question
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about rewrite commits
2009-05-05 12:52 ` Ferry Huberts (Pelagic)
@ 2009-05-05 13:27 ` Anner van Hardenbroek
0 siblings, 0 replies; 4+ messages in thread
From: Anner van Hardenbroek @ 2009-05-05 13:27 UTC (permalink / raw)
To: Ferry Huberts (Pelagic); +Cc: Git Mailing List
Yeah, okay but I'd like it visually.
On Tue, May 5, 2009 at 2:52 PM, Ferry Huberts (Pelagic)
<ferry.huberts@pelagic.nl> wrote:
>
> Anner van Hardenbroek wrote:
> > Hi!
> >
> > I've a question about rewriting commits. I'd like to change the
> > branches so that "Introduced BTRmxSoapArgument, second fase + code
> > cleanup." is right below (a straight vertical line) "No HTML errors
> > because we have nice ones!".
>
> it already is :-)
>
> or did you mean that you want to get rid of the merge? that's an
> entirely different question
--
Anner van Hardenbroek,
dwlnetnl@users.sourceforge.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about rewrite commits
2009-05-05 11:45 Question about rewrite commits Anner van Hardenbroek
2009-05-05 12:52 ` Ferry Huberts (Pelagic)
@ 2009-05-05 19:46 ` Dirk Süsserott
1 sibling, 0 replies; 4+ messages in thread
From: Dirk Süsserott @ 2009-05-05 19:46 UTC (permalink / raw)
To: Anner van Hardenbroek; +Cc: Git Mailing List
Hi Anner,
I had these 'cosmetic' problems as well and did the surgery like this:
I assume that your commits
'Introduced...',
'No HTML...', and
'A page can now ...'
are on branch 'master' and the righthand track is on branch
'console-mvc' which starts at 'Introduced...'.
Finally you did 'git checkout master; git merge console-mvc'.
I did the following:
- give a tag (say 'foo') to the 'No HTML...' commit
- rebase the console-mvc branch to that tag:
$ git rebase foo console-mvc
this will yield to a weird road map in gitk. Don't bother.
- rebase the master to the new console-mvc branch:
$ git rebase console-mvc master
the history will now be linear.
- remove the tag 'foo'
You may, of course, omit the tagging when you know the sha1's of the
commits. In your case you will, as they're displayed in gitk.
[ In theory there's a way to identify commits by their commit message
(see manpage of git-rev-parse), but I didn't make it work. As I
understood "git show :/foo" would mention the latest commit whose commit
message starts with 'foo', but I only got error messages. ]
Be noticed that rewriting history isn't a good idea if you already have
published your work. Your coworkers may get disturbed. ;-)
Hope this helps,
Dirk
Am 05.05.2009 13:45 schrieb Anner van Hardenbroek:
> Hi!
>
> I've a question about rewriting commits. I'd like to change the
> branches so that "Introduced BTRmxSoapArgument, second fase + code
> cleanup." is right below (a straight vertical line) "No HTML errors
> because we have nice ones!". How can I do that?
>
> Thanks,
> Anner.
>
> --
> Anner van Hardenbroek,
> dwlnetnl@gmail.com
>
>
> ------------------------------------------------------------------------
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-05 19:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-05 11:45 Question about rewrite commits Anner van Hardenbroek
2009-05-05 12:52 ` Ferry Huberts (Pelagic)
2009-05-05 13:27 ` Anner van Hardenbroek
2009-05-05 19:46 ` Dirk Süsserott
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).