From: Junio C Hamano <gitster@pobox.com>
To: しらいしななこ <nanako3@lavabit.com>
Cc: "David Jeske" <jeske@willowmail.com>, <git@vger.kernel.org>
Subject: Re: is rebase the same as merging every commit?
Date: Fri, 27 Jun 2008 14:51:49 -0700 [thread overview]
Message-ID: <7vskuypmve.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20080627193328.6117@nanako3.lavabit.com> (nanako3@lavabit.com's message of "Fri, 27 Jun 2008 19:33:28 +0900")
しらいしななこ <nanako3@lavabit.com> writes:
> Quoting Junio C Hamano <gitster@pobox.com>:
>
>> "David Jeske" <jeske@willowmail.com> writes:
>>
>>> If I understand it right (and that's a BIG if), it's the same as doing a merge
>>> of C into G where every individual commit in the C-line is individually
>>> committed into the new C' line.
>>>
>>> ...........-------------A---B---C
>>> ........../ / / /
>>> ........./ /---A'--B'--C' topic
>>> ......../ /
>>> ....D---E---F---G - master
>>>
>>>
>>> (1) Is the above model a valid explanation?
>>
>> I would presume that the resulting trees A' in the second picture and in
>> the first picture would be the same, so are B' and C'. But that is only
>> true when commits between A and C do not have any duplicate with the
>> development that happened between E and G.
>
> Sorry, but I think you are wrong, Junio.
> ...
> I agree that your explanation why A is not recorded as a parent of A' is
> right for the philosophical reason (the purpose of rebasing to create A'
> is so that you do not have to record them). But from the point-of-view
> of correctness of commit history, I think A must not be recorded as a
> parent of A', either.
All correct. Sorry about the confusion.
next prev parent reply other threads:[~2008-06-27 21:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-26 23:04 is rebase the same as merging every commit? David Jeske
2008-06-27 0:51 ` Junio C Hamano
2008-06-27 1:08 ` Junio C Hamano
2008-06-27 6:24 ` David Jeske
2008-06-27 7:34 ` Matthieu Moy
2008-06-27 15:39 ` David Jeske
2008-06-27 15:39 ` David Jeske
2008-06-27 6:24 ` David Jeske
2008-06-27 6:31 ` Pascal Obry
2008-06-27 10:33 ` しらいしななこ
2008-06-27 21:51 ` Junio C Hamano [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-06-26 23:04 David Jeske
2008-06-27 6:30 ` Matthieu Moy
2008-06-27 6:46 ` David Jeske
2008-06-27 6:46 ` David Jeske
2008-06-27 8:34 ` Petr Baudis
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=7vskuypmve.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jeske@willowmail.com \
--cc=nanako3@lavabit.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.