From: Junio C Hamano <gitster@pobox.com>
To: しらいしななこ <nanako3@bluebottle.com>
Cc: "Stephen R. van den Berg" <srb@cuci.nl>, git@vger.kernel.org
Subject: Re: "git log --first-parent" shows parents that are not first
Date: Sun, 11 May 2008 11:44:06 -0700 [thread overview]
Message-ID: <7vd4ns3cll.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <200805110706.m4B76eLE006432@mi0.bluebottle.com> (nanako3@bluebottle.com's message of "Sun, 11 May 2008 16:03:20 +0900")
しらいしななこ <nanako3@bluebottle.com> writes:
>> The result given by "git log --first-parent" ('next' version) is
>> unexpected to me.
>>
>> % git rev-parse origin/next
>> 4eddac518225621c3e4f7285beb879d2b4bad38a
>> % git log --abbrev-commit --pretty=oneline --first-parent origin/next^..origin/next
>> 4eddac5... Merge branch 'master' into next
>> 1f8115b... Merge branch 'maint'
>> ...
>> 921177f... Documentation: improve "add", "pull" and "format-patch" examples
>> c904bf3... Be more careful with objects directory permissions on clone
>>
>> I asked for the log between one commit before the tip of "origin/next"
>> and the tip of the branch, following only the first-parent links.
>> v1.5.5 is not broken and shows the expected result:
>>
>> % ~/git-v1.5.5/bin/git log --abbrev-commit --pretty=oneline --first-parent origin/next^..origin/next
>> 4eddac5... Merge branch 'master' into next
>
> Could you please revert d9c292e8bbd51c84cb9ecd86cb89b8a1b35a2a82? With
> that patch reverted from 'next', the problem disappears.
That's d9c292e (Simplify and fix --first-parent implementation,
2008-04-27) by Stephen.
I know that the alleged "fix" works around a corner-case, a fast-forward
situation that was artificually recorded as a merge, but if the "cure"
breaks a normal case like this, it is worse than the disease.
Stephen, do you have a fix?
next prev parent reply other threads:[~2008-05-11 18:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-11 7:03 "git log --first-parent" shows parents that are not first しらいしななこ
2008-05-11 18:44 ` Junio C Hamano [this message]
2008-05-11 23:14 ` [PATCH] revision.c: really honor --first-parent Lars Hjemli
2008-05-12 15:12 ` [PATCH v2] " Lars Hjemli
2008-05-13 20:15 ` Stephen R. van den Berg
2008-05-13 20:43 ` Lars Hjemli
2008-05-13 22:38 ` Junio C Hamano
2008-05-14 10:34 ` Stephen R. van den Berg
2008-05-14 10:54 ` Lars Hjemli
2008-05-14 11:10 ` Stephen R. van den Berg
-- strict thread matches above, loose matches on Subject: below --
2008-05-11 2:23 "git log --first-parent" shows parents that are not first しらいしななこ
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=7vd4ns3cll.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=nanako3@bluebottle.com \
--cc=srb@cuci.nl \
/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).